Skip to content
Snippets Groups Projects
Verified Commit 38b7c7e2 authored by TTtie's avatar TTtie
Browse files

Introduce new style rules

parent 46020de5
No related branches found
No related tags found
No related merge requests found
{ "use strict";
"env": { module.exports = {
"es2021": true, env: {
"node": true es2021: true,
node: true,
}, },
"extends": "eslint:recommended", extends: "eslint:recommended",
"parserOptions": { parserOptions: {
"sourceType": "script", sourceType: "script",
"ecmaVersion": 2022 ecmaVersion: 2022,
}, },
"rules": { rules: {
"indent": [ // Annoyances
"no-inner-declarations": "off",
"no-useless-escape": "warn",
"require-atomic-updates": "off",
"linebreak-style": "off",
// Performance/consistency
"eqeqeq": [
"error", "error",
4 "always",
{
"null": "ignore",
},
], ],
"linebreak-style": "off", "strict": [
"quotes": [
"error", "error",
"double" "global",
], ],
"semi": [ "no-var": ["error"],
"prefer-const": ["warn"],
"prefer-template": ["error"],
// Stylistic
"array-element-newline": [
"error", "error",
"always" "consistent",
], ],
"no-inner-declarations": "off", "comma-dangle": ["error", "always-multiline"],
"no-useless-escape": "off", "comma-style": ["error", "last"],
"require-atomic-updates": "off", "indent": [
"strict": [
"error", "error",
"global" 4,
], ],
"eqeqeq": [ "quotes": [
"error",
"double",
],
"semi": [
"error", "error",
"always", "always",
{
"null": "ignore"
}
], ],
"no-empty": [ "no-empty": [
"error", "error",
{ {
"allowEmptyCatch": true "allowEmptyCatch": true,
} },
], ],
"no-extra-parens": "error", "no-extra-parens": "error",
"brace-style": [ "brace-style": [
"error", "error",
"1tbs" "1tbs",
], ],
"object-curly-spacing": [ "object-curly-spacing": [
"error", "error",
"always" "always",
] ],
"eol-last": ["warn", "always"],
"key-spacing": ["error"],
"keyword-spacing": ["error"],
"lines-between-class-members": ["error"],
"newline-per-chained-call": ["warn"],
"no-unneeded-ternary": ["warn"],
"prefer-object-spread": ["warn"],
"semi-spacing": ["error"],
"space-before-blocks": ["error", "always"],
"spaced-comment": ["error", "always"],
"arrow-body-style": ["warn", "as-needed"],
"arrow-spacing": ["error"],
},
globals: {
"BigInt": true,
}, },
"globals": { };
"BigInt": true
}
}
\ No newline at end of file
module.exports = require("./.eslintrc.json"); "use strict";
\ No newline at end of file module.exports = require("./.eslintrc.js");
{ {
"name": "@tt-bot-dev/eslint-config", "name": "@tt-bot-dev/eslint-config",
"version": "1.0.4", "version": "1.1.0",
"description": "The ESLint configuration used across all tt-bot-dev repositories.", "description": "The ESLint configuration used across all tt-bot-dev repositories.",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment