This repository was archived by the owner on Aug 8, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +25
-1
lines changed
Expand file tree Collapse file tree 4 files changed +25
-1
lines changed Original file line number Diff line number Diff line change 112.5.2
2+ - Update ES6 indent rule on switch statements
3+ - Add ignore patterns for unused vars/args to the React configuration
4+ - Ignore non-JS files and node_modules in the ES6 import module
25 - Add a new ES5 configuration ported to ESLint 2 and up
362.5.1
47 - Update line length to 200
Original file line number Diff line number Diff line change @@ -74,6 +74,15 @@ extends:
7474 - ' ./node_modules/mobify-code-style/es6/mobify-es6-react.yml'
7575` ` `
7676
77+ If using a custom Webpack configuration, add the lines:
78+ ` ` ` yaml
79+ settings :
80+ import/resolver :
81+ webpack :
82+ config : ' <path-to-webpack-config>'
83+ ` ` `
84+ to the ` .eslintrc.yml`
85+
7786Make sure to install the following NPM modules :
7887 - ` eslint` > 3.0
7988 - ` eslint-plugin-import`
Original file line number Diff line number Diff line change 3434 react/jsx-indent-props : error
3535 react/jsx-space-before-closing : error
3636 react/wrap-multilines : error
37+
38+ # Ignore common unused vars and args in React projects
39+ no-unused-vars :
40+ - error
41+ - varsIgnorePattern : ' ^(styles)$'
42+ argsIgnorePattern : ' ^(props|dispatch|state)$'
Original file line number Diff line number Diff line change @@ -11,6 +11,9 @@ parserOptions:
1111 sourceType : module
1212settings :
1313 import/resolver : webpack
14+ import/ignore :
15+ - node_modules
16+ - \.(scss|css|html)$
1417rules :
1518 # Allow logging for debug purposes
1619 no-console : ' off'
@@ -132,7 +135,10 @@ rules:
132135 dot-notation : error
133136 eol-last : error
134137 generator-star-spacing : error
135- indent : error
138+ indent :
139+ - error
140+ - 4
141+ - SwitchCase : 1
136142 jsx-quotes : error
137143 key-spacing : error
138144 keyword-spacing : error
You can’t perform that action at this time.
0 commit comments