Skip to content

Commit

Permalink
fix: Fix requires of external plugins and configs (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
okonet authored Aug 18, 2018
1 parent 7f7ad85 commit ca56503
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module.exports = {
es6: true, // This setting enables ES6 syntax automatically
jest: true
},
extends: ['eslint-config-prettier'].map(require.resolve).concat(['eslint:recommended']),
extends: ['eslint-config-prettier', 'eslint:recommended'],
plugins: ['prettier', 'import'],
rules: {
'padded-blocks': [0, 'never'],
Expand Down
2 changes: 1 addition & 1 deletion node.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module.exports = {
node: true
},
plugins: ['node'],
extends: ['./index.js', 'plugin:node/recommended'],
extends: [require.resolve('./index.js'), 'plugin:node/recommended'],
rules: {
strict: ['error', 'global'],
'node/exports-style': ['error', 'module.exports']
Expand Down
10 changes: 5 additions & 5 deletions react.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ module.exports = {
commonjs: true
},
extends: [
'./index.js',
'eslint-plugin-react/recommended',
'eslint-plugin-jsx-a11y/recommended',
require.resolve('./index.js'),
'plugin:react/recommended',
'plugin:jsx-a11y/recommended',
'eslint-config-prettier/react'
].map(require.resolve),
plugins: ['eslint-plugin-jsx-a11y'].map(require.resolve),
],
plugins: ['eslint-plugin-jsx-a11y'],
rules: {
// React
'react/jsx-filename-extension': 0,
Expand Down

0 comments on commit ca56503

Please sign in to comment.