tornado-cli/.eslintrc.js

66 lines
1.1 KiB
JavaScript
Raw Normal View History

2024-04-24 20:25:54 +03:00
module.exports = {
"env": {
"es2021": true,
"node": true
},
"extends": [
"eslint:recommended",
2024-04-24 20:26:02 +03:00
"plugin:@typescript-eslint/recommended",
"plugin:import/recommended",
"plugin:import/typescript",
"prettier",
"plugin:prettier/recommended",
2024-04-24 20:25:54 +03:00
],
"overrides": [
{
"env": {
"node": true
},
"files": [
".eslintrc.{js,cjs}"
],
"parserOptions": {
"sourceType": "script"
}
}
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": [
2024-04-24 20:26:02 +03:00
"@typescript-eslint",
"prettier"
2024-04-24 20:25:54 +03:00
],
"rules": {
2024-04-24 20:26:02 +03:00
"prettier/prettier": [
"error",
{
singleQuote: true,
printWidth: 120
}
],
"import/order": ["error"],
2024-04-26 22:32:49 +03:00
/**
2024-04-24 20:25:54 +03:00
"indent": [
"error",
2
],
2024-04-26 22:32:49 +03:00
**/
2024-04-24 20:25:54 +03:00
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"single"
],
"semi": [
"error",
"always"
2024-04-24 20:26:02 +03:00
],
"@typescript-eslint/no-unused-vars": ["warn"]
2024-04-24 20:25:54 +03:00
}
}