Skip to content

Commit

Permalink
standard --> eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinashworth committed Dec 25, 2020
1 parent bb7a58a commit b93ea85
Show file tree
Hide file tree
Showing 6 changed files with 305 additions and 645 deletions.
2 changes: 0 additions & 2 deletions .eslintignore

This file was deleted.

51 changes: 9 additions & 42 deletions .eslintrc → .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"node": true
},
"extends": [
"standard",
"eslint:recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
Expand All @@ -26,11 +27,16 @@
"ignorePatterns": [
"packages/octave/lib/components/common/coreui-react/**",
"docs/**",
"mockaroo/generated/**"
"mockaroo/generated/**",
"packages/octave/lib/server/seeds/generated/*.js",
"packages/_*",
"*.graphql"
],
"parser": "babel-eslint",
"parserOptions": {
"allowImportExportEverywhere": true,
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 6,
"sourceType": "module"
},
Expand All @@ -43,47 +49,8 @@
],
"root": true,
"rules": {
"babel/array-bracket-spacing": 0,
"babel/arrow-parens": 0,
"babel/generator-star-spacing": 0,
"babel/new-cap": [
1,
{
"capIsNewExceptions": [
"Optional",
"OneOf",
"Maybe",
"MailChimpAPI",
"Juice",
"Run",
"AppComposer",
"Query"
]
}
],
"babel/object-curly-spacing": 0,
"babel/object-shorthand": 0,
"comma-dangle": 0,
"key-spacing": 0,
"meteor/audit-argument-checks": 0,
"no-case-declarations": 0,
"no-console": 0,
"no-debugger": 1,
"no-extra-boolean-cast": 0,
"no-undef": 1,
"no-unused-vars": [
1,
{
"vars": "all",
"args": "none",
"varsIgnorePattern": "React|PropTypes|Component"
}
],
"react/prop-types": 0,
"quotes": [
1,
"single"
]
"react/prop-types": 0
},
"settings": {
"react": {
Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/standard/standardx
- repo: https://github.com/pre-commit/mirrors-eslint
rev: master
hooks:
- id: standardx
- id: eslint
files: packages\/octave\/.*\.jsx?$
Loading

0 comments on commit b93ea85

Please sign in to comment.