-
Notifications
You must be signed in to change notification settings - Fork 275
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[React]Upgrade 3rd party dependencies #1250
[React]Upgrade 3rd party dependencies
- Loading branch information
Showing
16 changed files
with
1,493 additions
and
573 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
160 changes: 82 additions & 78 deletions
160
packages/create-sitecore-jss/src/templates/react/.eslintrc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,78 +1,82 @@ | ||
{ | ||
"root": true, | ||
"extends": [ | ||
"prettier", | ||
"plugin:import/errors", | ||
"plugin:import/warnings", | ||
"plugin:react/recommended", | ||
"plugin:yaml/recommended", | ||
"plugin:prettier/recommended" | ||
], | ||
"parser": "babel-eslint", | ||
"parserOptions": { | ||
"ecmaFeatures": { | ||
"jsx": true | ||
} | ||
}, | ||
"plugins": [ | ||
"import", | ||
"react", | ||
"yaml" | ||
], | ||
"settings": { | ||
"import/ignore": [ | ||
"node_modules", | ||
".png$", | ||
".jpg$" | ||
], | ||
"react": { | ||
"version": "detect" | ||
} | ||
}, | ||
"globals": { | ||
"window": true, | ||
"document": true | ||
}, | ||
"rules": { | ||
"import/no-unresolved": "off", | ||
"import/no-duplicates": "off", | ||
"import/no-named-as-default": "off", | ||
"import/no-extraneous-dependencies": [ | ||
"error", | ||
{ | ||
"devDependencies": true, | ||
"optionalDependencies": true | ||
} | ||
], | ||
"linebreak-style": "off", | ||
"react/jsx-filename-extension": 0, | ||
"jsx-quotes": ["error", "prefer-double"], | ||
"import/prefer-default-export": "off", | ||
"react/forbid-prop-types": "off", | ||
"react/prop-types": 0, | ||
"react/no-danger": "off", | ||
"react/require-default-props": "off", | ||
"react/no-array-index-key": "off", | ||
"no-use-before-define": 0, | ||
"global-require": 0, | ||
"no-param-reassign": 0, | ||
"no-useless-escape": "off", | ||
"spaced-comment": "error", | ||
"curly": ["error", "multi-line"], | ||
"eol-last": ["error", "always"], | ||
"guard-for-in": "error", | ||
"no-unused-labels": "error", | ||
"no-caller": "error", | ||
"no-bitwise": "error", | ||
"no-multiple-empty-lines": "error", | ||
"no-new-wrappers": "error", | ||
"no-eval": "error", | ||
"dot-notation": "error", | ||
"no-trailing-spaces": "error", | ||
"no-unused-expressions": ["error", { "allowShortCircuit": true, "allowTernary": true }], | ||
"brace-style": "error", | ||
"quotes": ["error", "single"], | ||
"default-case": "error", | ||
"eqeqeq": "error" | ||
} | ||
} | ||
{ | ||
"root": true, | ||
"extends": [ | ||
"prettier", | ||
"plugin:import/errors", | ||
"plugin:import/warnings", | ||
"plugin:react/recommended", | ||
"plugin:yaml/recommended", | ||
"plugin:prettier/recommended" | ||
], | ||
"parser": "@babel/eslint-parser", | ||
"parserOptions": { | ||
"requireConfigFile": false, | ||
"ecmaFeatures": { | ||
"jsx": true | ||
}, | ||
"babelOptions": { | ||
"presets": ["@babel/preset-react"] | ||
} | ||
}, | ||
"plugins": [ | ||
"import", | ||
"react", | ||
"yaml" | ||
], | ||
"settings": { | ||
"import/ignore": [ | ||
"node_modules", | ||
".png$", | ||
".jpg$" | ||
], | ||
"react": { | ||
"version": "detect" | ||
} | ||
}, | ||
"globals": { | ||
"window": true, | ||
"document": true | ||
}, | ||
"rules": { | ||
"import/no-unresolved": "off", | ||
"import/no-duplicates": "off", | ||
"import/no-named-as-default": "off", | ||
"import/no-extraneous-dependencies": [ | ||
"error", | ||
{ | ||
"devDependencies": true, | ||
"optionalDependencies": true | ||
} | ||
], | ||
"linebreak-style": "off", | ||
"react/jsx-filename-extension": 0, | ||
"jsx-quotes": ["error", "prefer-double"], | ||
"import/prefer-default-export": "off", | ||
"react/forbid-prop-types": "off", | ||
"react/prop-types": 0, | ||
"react/no-danger": "off", | ||
"react/require-default-props": "off", | ||
"react/no-array-index-key": "off", | ||
"no-use-before-define": 0, | ||
"global-require": 0, | ||
"no-param-reassign": 0, | ||
"no-useless-escape": "off", | ||
"spaced-comment": "error", | ||
"curly": ["error", "multi-line"], | ||
"eol-last": ["error", "always"], | ||
"guard-for-in": "error", | ||
"no-unused-labels": "error", | ||
"no-caller": "error", | ||
"no-bitwise": "error", | ||
"no-multiple-empty-lines": "error", | ||
"no-new-wrappers": "error", | ||
"no-eval": "error", | ||
"dot-notation": "error", | ||
"no-trailing-spaces": "error", | ||
"no-unused-expressions": ["error", { "allowShortCircuit": true, "allowTernary": true }], | ||
"brace-style": "error", | ||
"quotes": ["error", "single"], | ||
"default-case": "error", | ||
"eqeqeq": "error" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.