зеркало из https://github.com/microsoft/griffel.git
86 строки
2.0 KiB
JSON
86 строки
2.0 KiB
JSON
{
|
|
"root": true,
|
|
"ignorePatterns": ["**/*"],
|
|
"plugins": ["@nx", "import", "jest"],
|
|
"extends": ["plugin:import/typescript"],
|
|
"settings": {
|
|
"import/resolver": {
|
|
"typescript": {
|
|
"alwaysTryTypes": true,
|
|
"project": "./tsconfig.base.json"
|
|
}
|
|
}
|
|
},
|
|
"rules": {
|
|
"@typescript-eslint/consistent-type-imports": [
|
|
"error",
|
|
{
|
|
"disallowTypeAnnotations": false,
|
|
"fixStyle": "separate-type-imports",
|
|
"prefer": "type-imports"
|
|
}
|
|
],
|
|
"import/no-extraneous-dependencies": [
|
|
"error",
|
|
{
|
|
"devDependencies": false
|
|
}
|
|
],
|
|
"jest/no-focused-tests": "error"
|
|
},
|
|
"overrides": [
|
|
{
|
|
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
|
|
"excludedFiles": "*.fixture.js",
|
|
"rules": {
|
|
"@nx/enforce-module-boundaries": [
|
|
"error",
|
|
{
|
|
"enforceBuildableLibDependency": true,
|
|
"allow": [],
|
|
"depConstraints": [
|
|
{
|
|
"sourceTag": "*",
|
|
"onlyDependOnLibsWithTags": ["*"]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"files": ["*.ts", "*.tsx"],
|
|
"extends": ["plugin:@nx/typescript"],
|
|
"rules": {
|
|
"@typescript-eslint/no-inferrable-types": "off",
|
|
"@typescript-eslint/no-non-null-assertion": "off",
|
|
"@typescript-eslint/no-unused-vars": "error",
|
|
"@typescript-eslint/no-extra-semi": "error",
|
|
"no-extra-semi": "off"
|
|
}
|
|
},
|
|
{
|
|
"files": ["*.js", "*.jsx"],
|
|
"extends": ["plugin:@nx/javascript"],
|
|
"rules": {
|
|
"@typescript-eslint/no-extra-semi": "error",
|
|
"no-extra-semi": "off"
|
|
}
|
|
},
|
|
{
|
|
"files": [
|
|
"**/__fixtures__/**/*",
|
|
"**/*.stories.ts",
|
|
"**/*.stories.tsx",
|
|
"**/*.test.ts",
|
|
"**/*.test.tsx",
|
|
"**/jest.setup.js",
|
|
"**/jest.setup.ts"
|
|
],
|
|
"rules": {
|
|
"import/no-extraneous-dependencies": "off"
|
|
}
|
|
}
|
|
]
|
|
}
|