UNPKG

610 BJavaScriptView Raw
1module.exports = {
2 rules: {
3 /**
4 * core eslint rules
5 * @see https://eslint.org/docs/rules
6 */
7 // handles only member sort, rest is handled via import/order
8 'sort-imports': ['warn', { ignoreDeclarationSort: true }],
9
10 /**
11 * import plugin rules
12 * @see https://github.com/import-js/eslint-plugin-import
13 */
14 'import/no-duplicates': 'warn',
15 'import/first': 'warn',
16 'import/order': [
17 'warn',
18 {
19 'newlines-between': 'always',
20 alphabetize: {
21 order: 'asc',
22 caseInsensitive: false,
23 },
24 },
25 ],
26 },
27};