mirror of
https://github.com/Choices-js/Choices.git
synced 2024-06-03 06:22:25 +02:00
Use airbnb eslint config
This commit is contained in:
parent
f64369cc9f
commit
3c037e0682
20
.eslintrc
20
.eslintrc
|
@ -1,4 +1,5 @@
|
||||||
{
|
{
|
||||||
|
"extends": "airbnb",
|
||||||
"ecmaFeatures": {
|
"ecmaFeatures": {
|
||||||
"modules": true
|
"modules": true
|
||||||
},
|
},
|
||||||
|
@ -8,20 +9,7 @@
|
||||||
},
|
},
|
||||||
"parser": "babel-eslint",
|
"parser": "babel-eslint",
|
||||||
"rules": {
|
"rules": {
|
||||||
"quotes": [2, "single"],
|
"strict": 0,
|
||||||
"strict": [2, "never"],
|
"no-underscore-dangle": 0
|
||||||
"indent": ["error", 2, {"SwitchCase": 1}],
|
}
|
||||||
"eol-last": "off",
|
|
||||||
"arrow-body-style": "off",
|
|
||||||
"no-underscore-dangle": "off",
|
|
||||||
"no-new": 0,
|
|
||||||
"max-len": "off",
|
|
||||||
"no-console": "off",
|
|
||||||
"consistent-return": "off",
|
|
||||||
"no-param-reassign": ["error", { "props": false }],
|
|
||||||
"no-unused-vars": ["error", { "args": "none" }],
|
|
||||||
"no-lonely-if": "off",
|
|
||||||
"class-methods-use-this": "error",
|
|
||||||
"react/require-extension": "off",
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
|
13
package.json
13
package.json
|
@ -6,6 +6,7 @@
|
||||||
"types": "index.d.ts",
|
"types": "index.d.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "node server.js",
|
"start": "node server.js",
|
||||||
|
"lint": "eslint assets/**/*.js",
|
||||||
"test": "karma start --single-run --no-auto-watch tests/karma.config.js",
|
"test": "karma start --single-run --no-auto-watch tests/karma.config.js",
|
||||||
"test:watch": "karma start --auto-watch --no-single-run tests/karma.config.js",
|
"test:watch": "karma start --auto-watch --no-single-run tests/karma.config.js",
|
||||||
"css:watch": "nodemon -e scss -x \"npm run css:build\"",
|
"css:watch": "nodemon -e scss -x \"npm run css:build\"",
|
||||||
|
@ -31,19 +32,19 @@
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"autoprefixer": "^6.3.3",
|
"autoprefixer": "^6.3.3",
|
||||||
"babel-core": "^6.7.2",
|
"babel-core": "^6.7.2",
|
||||||
"babel-eslint": "^6.1.2",
|
"babel-eslint": "^7.2.3",
|
||||||
"babel-loader": "^6.2.4",
|
"babel-loader": "^6.2.4",
|
||||||
"babel-preset-es2015": "^6.6.0",
|
"babel-preset-es2015": "^6.6.0",
|
||||||
"concurrently": "^3.1.0",
|
"concurrently": "^3.1.0",
|
||||||
"core-js": "^2.4.1",
|
"core-js": "^2.4.1",
|
||||||
"csso": "^1.8.2",
|
"csso": "^1.8.2",
|
||||||
"es6-promise": "^3.2.1",
|
"es6-promise": "^3.2.1",
|
||||||
"eslint": "^3.3.0",
|
"eslint": "^3.19.0",
|
||||||
"eslint-config-airbnb": "^10.0.1",
|
"eslint-config-airbnb": "^15.1.0",
|
||||||
"eslint-loader": "^1.5.0",
|
"eslint-loader": "^1.5.0",
|
||||||
"eslint-plugin-import": "^1.13.0",
|
"eslint-plugin-import": "^2.7.0",
|
||||||
"eslint-plugin-jsx-a11y": "^2.2.3",
|
"eslint-plugin-jsx-a11y": "^5.1.1",
|
||||||
"eslint-plugin-react": "^6.4.1",
|
"eslint-plugin-react": "^7.2.1",
|
||||||
"jasmine-core": "2.4.1",
|
"jasmine-core": "2.4.1",
|
||||||
"karma": "^1.1.0",
|
"karma": "^1.1.0",
|
||||||
"karma-coverage": "^1.0.0",
|
"karma-coverage": "^1.0.0",
|
||||||
|
|
Loading…
Reference in a new issue