1
0
mirror of https://github.com/kremalicious/portfolio.git synced 2024-12-22 09:13:19 +01:00

add eslint-plugin-compat

This commit is contained in:
Matthias Kretschmann 2018-04-09 19:43:51 +02:00
parent 3f7a7fe570
commit 1c68028450
Signed by: m
GPG Key ID: 606EEEF3C479A91F
2 changed files with 11 additions and 3 deletions

View File

@ -1,5 +1,5 @@
{
"plugins": ["react", "graphql"],
"plugins": ["react", "graphql", "compat"],
"parserOptions": {
"sourceType": "module",
"ecmaFeatures": {
@ -18,6 +18,10 @@
"extends": ["eslint:recommended", "plugin:react/recommended"],
"rules": {
"quotes": ["error", "single"],
"semi": ["error", "never"]
"semi": ["error", "never"],
"compat/compat": "error"
},
"settings": {
"polyfills": ["promises"]
}
}

View File

@ -18,6 +18,7 @@
"devDependencies": {
"babel-eslint": "^8.2.2",
"eslint": "^4.19.1",
"eslint-plugin-compat": "^2.2.0",
"eslint-plugin-graphql": "^1.5.0",
"eslint-plugin-prettier": "^2.6.0",
"eslint-plugin-react": "^7.7.0",
@ -33,5 +34,8 @@
"start": "gatsby develop",
"format": "prettier --write 'src/**/*.js'",
"test": "npm run lint"
}
},
"browserslist": [
"defaults"
]
}