mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-01-06 22:40:26 -05:00
chore: removed unused files
This commit is contained in:
parent
6df04e1ce1
commit
57ac3389f1
5 changed files with 1 additions and 118 deletions
|
@ -1,29 +0,0 @@
|
|||
module.exports = {
|
||||
extends: ['./rules/base.js', './rules/prettier.js', './rules/jest.js'],
|
||||
env: {
|
||||
es6: true,
|
||||
node: true,
|
||||
},
|
||||
globals: {
|
||||
__APP_VERSION__: true,
|
||||
NodeJS: true,
|
||||
cy: true,
|
||||
},
|
||||
parserOptions: {
|
||||
allowImportExportEverywhere: true,
|
||||
sourceType: 'module',
|
||||
ecmaVersion: 11,
|
||||
ecmaFeatures: {
|
||||
impliedStrict: true,
|
||||
jsx: true,
|
||||
},
|
||||
},
|
||||
settings: {
|
||||
'import/resolver': {
|
||||
node: {
|
||||
extensions: ['.js', '.jsx', '.ts', '.tsx'],
|
||||
},
|
||||
},
|
||||
},
|
||||
parser: '@typescript-eslint/parser',
|
||||
};
|
|
@ -1,64 +0,0 @@
|
|||
module.exports = {
|
||||
extends: [
|
||||
'eslint:recommended',
|
||||
'google',
|
||||
'plugin:@typescript-eslint/eslint-recommended',
|
||||
'plugin:@typescript-eslint/recommended',
|
||||
'plugin:import/typescript',
|
||||
],
|
||||
plugins: ['import'],
|
||||
rules: {
|
||||
curly: ['error', 'all'],
|
||||
'keyword-spacing': 'off',
|
||||
'no-tabs': 'off',
|
||||
'no-useless-escape': 'off',
|
||||
'padded-blocks': 'off',
|
||||
'require-jsdoc': 'off',
|
||||
'valid-jsdoc': 'off',
|
||||
'eol-last': 'error',
|
||||
'no-irregular-whitespace': 'error',
|
||||
'no-mixed-spaces-and-tabs': ['error', 'smart-tabs'],
|
||||
'no-trailing-spaces': 'error',
|
||||
camelcase: 'off',
|
||||
'guard-for-in': 'error',
|
||||
'new-cap': 'error',
|
||||
// disabled in favor of @typescript-eslint/no-unused-vars
|
||||
'no-unused-vars': 'off',
|
||||
'max-len': ['error', 100],
|
||||
'no-console': ['error', { allow: ['warn'] }],
|
||||
'no-constant-condition': 'error',
|
||||
'no-debugger': 'error',
|
||||
'no-empty': 'error',
|
||||
'no-fallthrough': 'error',
|
||||
'no-invalid-this': 'error',
|
||||
'no-new-require': 'error',
|
||||
'no-undef': 'error',
|
||||
'no-unreachable': 'error',
|
||||
'no-var': 'error',
|
||||
'one-var': 'error',
|
||||
'prefer-rest-params': 'error',
|
||||
'prefer-spread': 'error',
|
||||
'handle-callback-err': 0,
|
||||
'prefer-const': 0,
|
||||
// typescript
|
||||
'@typescript-eslint/camelcase': 0,
|
||||
'@typescript-eslint/ban-ts-ignore': 0,
|
||||
'@typescript-eslint/no-var-requires': 0,
|
||||
'@typescript-eslint/no-inferrable-types': 0,
|
||||
'@typescript-eslint/no-empty-function': 0,
|
||||
'@typescript-eslint/no-this-alias': 0,
|
||||
'@typescript-eslint/no-use-before-define': 0,
|
||||
'@typescript-eslint/array-type': ['error'],
|
||||
'@typescript-eslint/no-explicit-any': 0,
|
||||
'@typescript-eslint/indent': 0,
|
||||
'@typescript-eslint/ban-ts-comment': 0,
|
||||
'@typescript-eslint/ban-types': 0,
|
||||
'@typescript-eslint/explicit-module-boundary-types': 0,
|
||||
// rules to fix
|
||||
'prefer-promise-reject-errors': ['warn'],
|
||||
|
||||
'@typescript-eslint/prefer-optional-chain': ['warn'],
|
||||
'@typescript-eslint/explicit-member-accessibility': 0,
|
||||
'@typescript-eslint/no-unused-vars': ['error'],
|
||||
},
|
||||
};
|
|
@ -1,20 +0,0 @@
|
|||
module.exports = {
|
||||
extends: ['plugin:jest/recommended'],
|
||||
plugins: ['jest'],
|
||||
env: {
|
||||
jest: true,
|
||||
},
|
||||
rules: {
|
||||
'jest/no-export': 0,
|
||||
'jest/no-test-callback': 0,
|
||||
'jest/expect-expect': 0,
|
||||
'jest/no-try-expect': 0,
|
||||
'jest/no-done-callback': 'off',
|
||||
'jest/no-conditional-expect': 'off',
|
||||
'jest/valid-title': 'off',
|
||||
// rules to fix
|
||||
'jest/no-identical-title': ['warn'],
|
||||
'jest/no-disabled-tests': ['warn'],
|
||||
'jest/no-commented-out-tests': ['warn'],
|
||||
},
|
||||
};
|
|
@ -1,4 +0,0 @@
|
|||
module.exports = {
|
||||
extends: ['plugin:prettier/recommended'],
|
||||
plugins: ['prettier'],
|
||||
};
|
|
@ -167,7 +167,7 @@
|
|||
"test:all": "yarn run test && yarn run test:functional",
|
||||
"pre:ci": "yarn run lint",
|
||||
"lint:ts": "yarn run type-check",
|
||||
"lint": "eslint -c ./eslint/index.js \"**/*.{js,jsx,ts}\" --max-warnings 145 -c ./eslintrc.js",
|
||||
"lint": "eslint \"**/*.{js,jsx,ts}\" --max-warnings 145 -c ./eslintrc.js",
|
||||
"lint:lockfile": "lockfile-lint --path yarn.lock --type yarn --validate-https --allowed-hosts verdaccio npm yarn",
|
||||
"start": "yarn babel-node --extensions \".ts,.tsx\" src/lib/cli --inspect",
|
||||
"start:brk": "yarn babel-node --extensions \".ts,.tsx\" src/lib/cli --inspect-brk",
|
||||
|
|
Loading…
Reference in a new issue