@solid-soda/scripts
Advanced tools
| module.exports = { | ||
| plugins: ['unicorn', 'eslint-plugin-import-helpers'], | ||
| extends: ["airbnb-base", 'plugin:unicorn/recommended'], | ||
| rules: { | ||
| 'import-helpers/order-imports': [ | ||
| 'warn', | ||
| { | ||
| newlinesBetween: 'always', | ||
| groups: [ | ||
| 'module', | ||
| ['/^app/', '/^lib/', '/^config/', '/^src/', '/^ui/'], | ||
| ['/^$/', '/^&/'], | ||
| ['/^@shared/', '/^@app/', '/^@back/', '/^@front/'], | ||
| ['parent', 'sibling', 'index'], | ||
| ], | ||
| alphabetize: { order: 'ignore', ignoreCase: true }, | ||
| }, | ||
| ], | ||
| }, | ||
| }; | ||
| plugins: ['unicorn', 'eslint-plugin-import-helpers'], | ||
| extends: ["airbnb-base", 'plugin:unicorn/recommended', "prettier"], | ||
| rules: { | ||
| "unicorn/filename-case": 0, | ||
| "import/no-unresolved": 0, | ||
| "import/prefer-default-export": 0, | ||
| "import/extensions": 0, | ||
| 'import-helpers/order-imports': [ | ||
| 'warn', | ||
| { | ||
| newlinesBetween: 'always', | ||
| groups: [ | ||
| 'module', | ||
| ['/^app/', '/^lib/', '/^config/', '/^src/', '/^ui/'], | ||
| ['/^$/', '/^&/'], | ||
| ['/^@shared/', '/^@app/', '/^@back/', '/^@front/'], | ||
| ['parent', 'sibling', 'index'], | ||
| ], | ||
| alphabetize: { order: 'ignore', ignoreCase: true }, | ||
| }, | ||
| ], | ||
| }, | ||
| }; |
@@ -10,2 +10,3 @@ module.exports = { | ||
| rules: { | ||
| 'no-unused-vars': 0, | ||
| 'no-empty-function': ['error', { allow: ['constructors'] }], | ||
@@ -12,0 +13,0 @@ 'react/prop-types': 0, |
+1
-1
@@ -17,3 +17,3 @@ const { packageJson, json, install, uninstall, lines } = require('mrm-core'); | ||
| const baseDependencies = ['eslint', 'eslint-plugin-import', 'eslint-config-airbnb-base', 'eslint-plugin-import-helpers', 'eslint-plugin-unicorn'] | ||
| const baseDependencies = ['eslint', 'eslint-plugin-import', 'eslint-config-airbnb-base', 'eslint-plugin-import-helpers', 'eslint-plugin-unicorn', 'eslint-config-prettier'] | ||
| const jsDependencies = ['babel-eslint'] | ||
@@ -20,0 +20,0 @@ const tsDependencies = ['@typescript-eslint/eslint-plugin', '@typescript-eslint/parser'] |
+1
-1
| { | ||
| "name": "@solid-soda/scripts", | ||
| "version": "2.0.0-beta.15", | ||
| "version": "2.0.0-beta.16", | ||
| "author": "Igor Kamyshev <igor@kamyshev.me>", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -18,2 +18,3 @@ const { pick } = require('lodash') | ||
| 'eslint-config-airbnb-base': '^14.1.0', | ||
| 'eslint-config-prettier': '^6.10.1', | ||
| 'husky': '^4.2.5', | ||
@@ -20,0 +21,0 @@ 'lint-staged': '^10.1.3', |
41122
0.48%461
1.32%