Browse Source

Introduce ESLint

1.1.101
Chris Fuertes 2 years ago
parent
commit
62135a7155
3 changed files with 1767 additions and 67 deletions
  1. +22
    -0
      .eslintrc.json
  2. +1730
    -62
      package-lock.json
  3. +15
    -5
      package.json

+ 22
- 0
.eslintrc.json View File

@ -0,0 +1,22 @@
{
"env": {
"browser": true,
"es6": true
},
"extends": [
"airbnb-base"
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"ecmaVersion": 2018
},
"rules": {
"indent": [
"error",
4
]
}
}

+ 1730
- 62
package-lock.json
File diff suppressed because it is too large
View File


+ 15
- 5
package.json View File

@ -1,20 +1,30 @@
{
"name": "p4t",
"version": "1.0.0",
"dependencies": {},
"dependencies": {
"upgrade": "^1.1.0"
},
"devDependencies": {
"atob": "^2.1.2",
"babel-cli": "^6.26.0",
"btoa": "^1.2.1",
"chai": "*",
"chai-as-promised": "*",
"mocha": "*",
"eslint": "^6.8.0",
"eslint-config-airbnb": "^18.0.1",
"eslint-config-airbnb-base": "^14.0.0",
"eslint-plugin-import": "^2.20.1",
"eslint-plugin-jsx-a11y": "^6.2.3",
"eslint-plugin-react": "^7.18.3",
"eslint-plugin-react-hooks": "^1.7.0",
"mocha": "^7.1.0",
"nyc": "^14.1.1",
"sinon": "^7.4.2",
"sinon": "^7.5.0",
"xhr2": "^0.1.4"
},
"scripts": {
"test": "./node_modules/.bin/mocha tests/unit/*.js tests/features/*.js",
"syntaxCheck": "./node_modules/.bin/babel chrome -d /tmp/babelOutput"
"test": "./node_modules/.bin/mocha tests/unit/*.js tests/features/*.js",
"syntaxCheck": "./node_modules/.bin/babel chrome -d /tmp/babelOutput",
"lint": "./node_modules/.bin/eslint chrome"
}
}

Loading…
Cancel
Save