mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-16 21:56:25 -05:00
716734c83c
* feat: using workspace @verdaccio/types * feat: use core local-storage plugin * chore: add missing dependencies * chore: replace trace by debug * chore: plugin loader uses debug
126 lines
3.3 KiB
Text
126 lines
3.3 KiB
Text
{
|
|
"extends": [
|
|
"eslint:recommended",
|
|
"google",
|
|
"plugin:prettier/recommended",
|
|
"plugin:react/recommended",
|
|
"plugin:jest/recommended",
|
|
"plugin:@typescript-eslint/eslint-recommended",
|
|
"plugin:@typescript-eslint/recommended",
|
|
"plugin:import/typescript",
|
|
"plugin:jsx-a11y/recommended",
|
|
"prettier",
|
|
"prettier/react",
|
|
"prettier/@typescript-eslint"
|
|
],
|
|
"plugins": [
|
|
"import",
|
|
"jest",
|
|
"jsx-a11y",
|
|
"react-hooks",
|
|
"prettier"
|
|
],
|
|
"env": {
|
|
"es6": true,
|
|
"browser": true,
|
|
"node": true,
|
|
"jest": true
|
|
},
|
|
"globals": {
|
|
"__APP_VERSION__": true
|
|
},
|
|
"parserOptions": {
|
|
"allowImportExportEverywhere": true,
|
|
"sourceType": "module",
|
|
"ecmaVersion": 11,
|
|
"ecmaFeatures": {
|
|
"impliedStrict": true,
|
|
"jsx": true
|
|
}
|
|
},
|
|
"settings": {
|
|
"react": {
|
|
"version": "detect"
|
|
},
|
|
"import/resolver": {
|
|
"node": {
|
|
"extensions": [".js", ".jsx", ".ts", ".tsx"]
|
|
}
|
|
}
|
|
},
|
|
"parser": "@typescript-eslint/parser",
|
|
"rules": {
|
|
"curly": [
|
|
"error", "all"
|
|
],
|
|
"prettier/prettier": [
|
|
2,
|
|
{
|
|
"useTabs": false,
|
|
"printWidth": 160,
|
|
"tabWidth": 2,
|
|
"singleQuote": true,
|
|
"bracketSpacing": true,
|
|
"jsxBracketSameLine": true,
|
|
"trailingComma": "es5",
|
|
"semi": true,
|
|
"parser": "typescript",
|
|
"importOrder": ["^@verdaccio/(.*)$", "^[./]"],
|
|
"importOrderSeparation": true
|
|
}
|
|
],
|
|
"react/prop-types": 0,
|
|
"jest/no-export": 0,
|
|
"jest/no-test-callback": 0,
|
|
"jest/expect-expect": 0,
|
|
"jest/no-try-expect": 0,
|
|
"jest/no-identical-title": 1,
|
|
"keyword-spacing": "off",
|
|
"no-tabs": "off",
|
|
"no-useless-escape": "off",
|
|
"padded-blocks": "off",
|
|
"require-jsdoc": "off",
|
|
"valid-jsdoc": "off",
|
|
"import/order": ["warn"],
|
|
"eol-last": "warn",
|
|
"no-irregular-whitespace": "warn",
|
|
"no-mixed-spaces-and-tabs": ["warn", "smart-tabs"],
|
|
"no-trailing-spaces": "warn",
|
|
"camelcase": "off",
|
|
"guard-for-in": "error",
|
|
"new-cap": "error",
|
|
"max-len": ["warn", 180],
|
|
"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-unused-vars": ["warn", { "vars": "all", "args": "none" }],
|
|
"no-var": "error",
|
|
"one-var": "error",
|
|
"prefer-rest-params": "warn",
|
|
"prefer-spread": "warn",
|
|
"handle-callback-err": 0,
|
|
"prefer-const": 0,
|
|
"prefer-promise-reject-errors": 1,
|
|
"@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": ["warn"],
|
|
"@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,
|
|
"@typescript-eslint/explicit-member-accessibility": ["warn"],
|
|
"@typescript-eslint/prefer-optional-chain": ["warn"]
|
|
}
|
|
}
|