diff --git a/.eslintrc.js b/.eslintrc.js index 906fd952a..0d0779434 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -15,7 +15,6 @@ module.exports = { 'eslint-plugin' ], rules: { - 'complexity': 'off', 'eslint-plugin/report-message-format': ['error', '^[A-Z].*\\.$'], 'eslint-plugin/prefer-placeholders': 'error', 'eslint-plugin/consistent-output': 'error' diff --git a/config/base.js b/lib/config/base.js similarity index 100% rename from config/base.js rename to lib/config/base.js diff --git a/config/recommended.js b/lib/config/recommended.js similarity index 56% rename from config/recommended.js rename to lib/config/recommended.js index 5c5f596d1..a3b7f7f3c 100644 --- a/config/recommended.js +++ b/lib/config/recommended.js @@ -1,4 +1,4 @@ module.exports = { extends: require.resolve('./base.js'), - rules: require('../lib/recommended-rules.js') + rules: require('../recommended-rules.js') } diff --git a/index.js b/lib/index.js similarity index 76% rename from index.js rename to lib/index.js index 985c9341b..4c563f27f 100644 --- a/index.js +++ b/lib/index.js @@ -3,7 +3,7 @@ const resolve = require('path').resolve const requireIndex = require('requireindex') -const rules = requireIndex(resolve(__dirname, 'lib/rules')) +const rules = requireIndex(resolve(__dirname, 'rules')) const configs = requireIndex(resolve(__dirname, 'config')) module.exports = {