Skip to content

Commit

Permalink
fix: remove config files from lint
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpastor committed Apr 11, 2024
1 parent 5d97395 commit 121756a
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
const stylistic = require("@stylistic/eslint-plugin")
// @ts-check
const stylistic = require("@stylistic/eslint-plugin");

const customized = stylistic.configs.customize({
const { rules: stylisticRules } = stylistic.configs.customize({
// the following options are the default values
indent: 4,
quotes: "double",
semi: true,
arrowParens: true,
commaDangle: "never",
quoteProps: "as-needed"
})
});

/** @type {import("eslint").ESLint.ConfigData} */
module.exports = {
root: true,
plugins: [
Expand All @@ -19,6 +21,7 @@ module.exports = {
parserOptions: {
project: "./tsconfig.json"
},
ignorePatterns: ["**/*.js"],
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
Expand Down Expand Up @@ -49,7 +52,7 @@ module.exports = {
}
},
rules: {
...customized.rules,
...stylisticRules,
"@typescript-eslint/array-type": [
"error",
{
Expand Down

0 comments on commit 121756a

Please sign in to comment.