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
{
"env": {
"es2021": true,
"node": true
"use strict";
module.exports = {
env: {
es2021: true,
node: true,
},
"extends": "eslint:recommended",
"parserOptions": {
"sourceType": "script",
"ecmaVersion": 2022
extends: "eslint:recommended",
parserOptions: {
sourceType: "script",
ecmaVersion: 2022,
},
"rules": {
"indent": [
rules: {
// Annoyances
"no-inner-declarations": "off",
"no-useless-escape": "warn",
"require-atomic-updates": "off",
"linebreak-style": "off",
// Performance/consistency
"eqeqeq": [
"error",
4
"always",
{
"null": "ignore",
},
],
"linebreak-style": "off",
"quotes": [
"strict": [
"error",
"double"
"global",
],
"semi": [
"no-var": ["error"],
"prefer-const": ["warn"],
"prefer-template": ["error"],
// Stylistic
"array-element-newline": [
"error",
"always"
"consistent",
],
"no-inner-declarations": "off",
"no-useless-escape": "off",
"require-atomic-updates": "off",
"strict": [
"comma-dangle": ["error", "always-multiline"],
"comma-style": ["error", "last"],
"indent": [
"error",
"global"
4,
],
"eqeqeq": [
"quotes": [
"error",
"double",
],
"semi": [
"error",
"always",
{
"null": "ignore"
}
],
"no-empty": [
"error",
{
"allowEmptyCatch": true
}
"allowEmptyCatch": true,
},
],
"no-extra-parens": "error",
"brace-style": [
"error",
"1tbs"
"1tbs",
],
"object-curly-spacing": [
"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");
\ No newline at end of file
"use strict";
module.exports = require("./.eslintrc.js");
{
"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.",
"main": "index.js",
"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