UNPKG

@luoxiao123/eslint-config

Version:

ESLint Shareable Configuration for Typescrpt

51 lines (45 loc) 1.3 kB
--- extends: - plugin:import/errors - plugin:import/warnings - plugin:import/typescript # this line does the trick rules: # https://github.com/benmosher/eslint-plugin-import#static-analysis import/default: 2 import/named: 2 import/namespace: 0 import/no-unresolved: [0, {"amd": true, "commonjs": true}] import/no-absolute-path: 2 import/no-cycle: 0 import/no-self-import: 2 import/no-useless-path-segments: 2 import/no-webpack-loader-syntax: 2 # https://github.com/benmosher/eslint-plugin-import#helpful-warnings import/export: 2 import/no-deprecated: 0 import/no-mutable-exports: 2 import/no-named-as-default: 2 import/no-named-as-default-member: 2 # https://github.com/benmosher/eslint-plugin-import#style-guide import/exports-last: 0 import/first: 2 import/max-dependencies: [1, {"max": 10}] import/newline-after-import: [1, { "count": 2 } ] import/no-default-export: 0 import/no-duplicates: 1 import/no-extraneous-dependencies: 0 import/no-named-default: 2 import/no-namespace: 0 import/order: - 1 - groups: - builtin - external - internal - parent - sibling - index alphabetize: order: 'asc' caseInsensitive: false newlines-between: always