zed/styles/.eslintrc.js

59 lines
1.2 KiB
JavaScript
Raw Normal View History

2023-06-28 23:28:46 +03:00
module.exports = {
2023-06-28 23:44:18 +03:00
'env': {
"node": true
},
'extends': [
'eslint:recommended',
'plugin:@typescript-eslint/recommended'
],
'parser': '@typescript-eslint/parser',
'parserOptions': {
'ecmaVersion': 'latest',
'sourceType': 'module'
},
'plugins': [
'@typescript-eslint', 'import'
],
globals: {
module: true
2023-06-28 23:28:46 +03:00
},
"settings": {
"import/parsers": {
"@typescript-eslint/parser": [".ts"]
},
"import/resolver": {
"typescript": {
"alwaysTryTypes": true,
}
}
},
2023-06-28 23:44:18 +03:00
'rules': {
'indent': [
'error',
4
],
'linebreak-style': [
'error',
'unix'
],
'semi': [
'error',
'never'
],
2023-06-28 23:28:46 +03:00
"import/no-restricted-paths": [
2023-06-28 23:44:18 +03:00
'error',
2023-06-28 23:28:46 +03:00
{
2023-06-28 23:44:18 +03:00
'zones': [
2023-06-28 23:28:46 +03:00
{
"target": "./src/types/*",
"from": "./src",
"except": [
"./src/types/index.ts"
]
}
]
}
]
}
}