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:
parent
3f7a7fe570
commit
1c68028450
@ -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"]
|
||||
}
|
||||
}
|
||||
|
@ -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"
|
||||
]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user