@@ -8,13 +8,10 @@ module.exports = {
88 'plugin:import/errors' ,
99 'plugin:import/warnings' ,
1010 'plugin:you-dont-need-lodash-underscore/compatible' ,
11- 'prettier' ,
12- 'prettier/prettier' ,
11+ 'plugin:prettier/recommended' , // This has to be the last rule added.
1312 ] ,
14- plugins : [ 'eslint-comments' , 'import' , ' node' , 'prettier ', 'unicorn' ] ,
13+ plugins : [ 'node' , 'unicorn' ] ,
1514 rules : {
16- 'arrow-body-style' : 'off' ,
17-
1815 'eslint-comments/disable-enable-pair' : [ 'error' , { allowWholeFile : true } ] ,
1916 'eslint-comments/no-unused-disable' : 'error' ,
2017
@@ -26,13 +23,13 @@ module.exports = {
2623 'import/order' : [
2724 'error' ,
2825 {
29- ' alphabetize' : {
26+ alphabetize : {
3027 order : 'asc' ,
3128 caseInsensitive : true ,
3229 } ,
33- ' groups' : [ 'type' , 'builtin' , 'external' , 'internal' , 'parent' , 'sibling' , 'index' , 'object' ] ,
30+ groups : [ 'type' , 'builtin' , 'external' , 'internal' , 'parent' , 'sibling' , 'index' , 'object' ] ,
3431 'newlines-between' : 'always' ,
35- ' warnOnUnassignedImports' : true ,
32+ warnOnUnassignedImports : true ,
3633 } ,
3734 ] ,
3835
@@ -56,11 +53,17 @@ module.exports = {
5653
5754 'prefer-destructuring' : 'off' ,
5855
59- 'prettier/prettier' : [ 'error' , prettierConfig ] ,
56+ 'prettier/prettier' : [
57+ 'error' ,
58+ prettierConfig ,
59+ {
60+ usePrettierrc : false ,
61+ } ,
62+ ] ,
6063
6164 // The `eslint-config-airbnb-base` that we extend off of doesn't have any rules for catching for
6265 // templated strings that aren't templates.
63- ' quotes' : [ 'error' , 'single' , { avoidEscape : true } ] ,
66+ quotes : [ 'error' , 'single' , { avoidEscape : true } ] ,
6467
6568 'unicorn/catch-error-name' : [ 'error' , { ignore : [ '^(error|err|e)$' ] } ] ,
6669 // "unicorn/consistent-function-scoping": "error", // Maybe?
0 commit comments