-
-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy patheslint.config.js
More file actions
76 lines (75 loc) · 1.84 KB
/
eslint.config.js
File metadata and controls
76 lines (75 loc) · 1.84 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
import nkzw from '@nkzw/eslint-config';
import fbtee from '@nkzw/eslint-plugin-fbtee';
import findWorkspaces from '@nkzw/find-workspaces';
import workspaces from 'eslint-plugin-workspaces';
export default [
...nkzw,
fbtee.configs.strict,
{
ignores: [
'packages/*/lib',
'packages/fbtee/lib-tmp/',
'website/dist/',
'website/vite.config.ts.timestamp-*',
],
},
{
plugins: {
'@nkzw/fbtee': fbtee,
workspaces,
},
rules: {
'@nkzw/fbtee/no-untranslated-strings': [
2,
{
ignoredWords: [
'Babel',
'Far Better Translations, Extended Edition',
'fbtee',
'GitHub',
'Next.js',
'Vite',
],
},
],
'@nkzw/no-instanceof': 0,
'@typescript-eslint/array-type': [2, { default: 'generic' }],
'import-x/no-extraneous-dependencies': [
2,
{
devDependencies: [
'./example/vite.config.ts',
'./jest-preprocessor.js',
'./packages/fbtee/babel-build.config.js',
'./website/vite.config.ts',
'**/__tests__/**/*.tsx',
'**/eslint.config.js',
],
packageDir: findWorkspaces(import.meta.dirname),
},
],
'unicorn/prefer-dom-node-append': 0,
'workspaces/no-absolute-imports': 2,
'workspaces/no-relative-imports': 2,
},
},
{
files: ['packages/**/*.tsx'],
rules: {
'@nkzw/fbtee/no-empty-strings': 0,
'@nkzw/fbtee/no-unhelpful-desc': 0,
'@nkzw/fbtee/no-untranslated-strings': 0,
},
},
{
files: [
'packages/babel-plugin-fbtee/src/bin/*.tsx',
'packages/fbtee/babel-build.config.js',
'**/__tests__/**/*.tsx',
],
rules: {
'no-console': 0,
'workspaces/no-relative-imports': 0,
},
},
];