diff --git a/.eslintrc.yaml b/.eslintrc.yaml new file mode 100644 index 0000000..bad845d --- /dev/null +++ b/.eslintrc.yaml @@ -0,0 +1,17 @@ +extends: + - airbnb + - prettier + - plugin:node/recommended + +plugins: + - prettier + +rules: + prettier/prettier: error + no-unused-vars: warn + no-console: off + func-names: off + no-process-exit: off + object-shorthand: off + class-methods-use-this: off + semi: [2, never] \ No newline at end of file diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..7ffb783 --- /dev/null +++ b/.prettierrc @@ -0,0 +1,5 @@ +{ + "semi": false, + "singleQuote": false, + "trailingComma": "none" +} \ No newline at end of file diff --git a/eslint.config.js b/eslint.config.js new file mode 100644 index 0000000..143db81 --- /dev/null +++ b/eslint.config.js @@ -0,0 +1,18 @@ +const a11yOff = Object.keys(require('eslint-plugin-jsx-a11y').rules) + .reduce((acc, rule) => { acc[`jsx-a11y/${rule}`] = 'off'; return acc }, {}) + +module.exports = { + extends: ['airbnb', 'prettier', 'plugin:node/recommended'], + plugins: ['pretftier'], + rules: { + ...a11yOff, + 'prettier/prettier': 'error', + 'no-unused-vars': 'warn', + 'no-console': 'off', + 'func-names': 'off', + 'no-process-exit': 'off', + 'object-shorthand': 'off', + 'class-methods-use-this': 'off', + "semi": [2, "never"] + }, + }; \ No newline at end of file