Commit 0c0cb87e authored by afc163's avatar afc163

Add eslint-config-compact

parent fc57d8f7
{ {
"parser": "babel-eslint", "parser": "babel-eslint",
"extends": "airbnb", "extends": "airbnb",
"plugins": ["compat"],
"env": { "env": {
"browser": true, "browser": true,
"node": true, "node": true,
...@@ -43,11 +44,15 @@ ...@@ -43,11 +44,15 @@
"object-curly-newline": [0], "object-curly-newline": [0],
"function-paren-newline": [0], "function-paren-newline": [0],
"no-restricted-globals": [0], "no-restricted-globals": [0],
"require-yield": [1] "require-yield": [1],
"compat/compat": "error"
}, },
"parserOptions": { "parserOptions": {
"ecmaFeatures": { "ecmaFeatures": {
"experimentalObjectRestSpread": true "experimentalObjectRestSpread": true
} }
},
"settings": {
"polyfills": ["fetch"]
} }
} }
...@@ -57,6 +57,7 @@ ...@@ -57,6 +57,7 @@
"eslint": "^4.8.0", "eslint": "^4.8.0",
"eslint-config-airbnb": "^16.0.0", "eslint-config-airbnb": "^16.0.0",
"eslint-plugin-babel": "^4.0.0", "eslint-plugin-babel": "^4.0.0",
"eslint-plugin-compat": "^2.1.0",
"eslint-plugin-import": "^2.2.0", "eslint-plugin-import": "^2.2.0",
"eslint-plugin-jsx-a11y": "^6.0.0", "eslint-plugin-jsx-a11y": "^6.0.0",
"eslint-plugin-markdown": "^1.0.0-beta.6", "eslint-plugin-markdown": "^1.0.0-beta.6",
...@@ -107,5 +108,10 @@ ...@@ -107,5 +108,10 @@
"lint-staged": { "lint-staged": {
"**/*.{js,jsx}": "lint-staged:js", "**/*.{js,jsx}": "lint-staged:js",
"**/*.less": "stylelint --syntax less" "**/*.less": "stylelint --syntax less"
} },
"browserslist": [
"> 1%",
"last 2 versions",
"not ie <= 10"
]
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment