Use airbnb eslint config

This commit is contained in:
Josh Johnson 2017-08-14 13:39:07 +01:00
parent f64369cc9f
commit 3c037e0682
2 changed files with 11 additions and 22 deletions

View file

@ -1,4 +1,5 @@
{
"extends": "airbnb",
"ecmaFeatures": {
"modules": true
},
@ -8,20 +9,7 @@
},
"parser": "babel-eslint",
"rules": {
"quotes": [2, "single"],
"strict": [2, "never"],
"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",
},
"strict": 0,
"no-underscore-dangle": 0
}
}

View file

@ -6,6 +6,7 @@
"types": "index.d.ts",
"scripts": {
"start": "node server.js",
"lint": "eslint assets/**/*.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",
"css:watch": "nodemon -e scss -x \"npm run css:build\"",
@ -31,19 +32,19 @@
"devDependencies": {
"autoprefixer": "^6.3.3",
"babel-core": "^6.7.2",
"babel-eslint": "^6.1.2",
"babel-eslint": "^7.2.3",
"babel-loader": "^6.2.4",
"babel-preset-es2015": "^6.6.0",
"concurrently": "^3.1.0",
"core-js": "^2.4.1",
"csso": "^1.8.2",
"es6-promise": "^3.2.1",
"eslint": "^3.3.0",
"eslint-config-airbnb": "^10.0.1",
"eslint": "^3.19.0",
"eslint-config-airbnb": "^15.1.0",
"eslint-loader": "^1.5.0",
"eslint-plugin-import": "^1.13.0",
"eslint-plugin-jsx-a11y": "^2.2.3",
"eslint-plugin-react": "^6.4.1",
"eslint-plugin-import": "^2.7.0",
"eslint-plugin-jsx-a11y": "^5.1.1",
"eslint-plugin-react": "^7.2.1",
"jasmine-core": "2.4.1",
"karma": "^1.1.0",
"karma-coverage": "^1.0.0",