diff --git a/.eslintrc.js b/.eslintrc.js deleted file mode 100644 index e1aee32c..00000000 --- a/.eslintrc.js +++ /dev/null @@ -1,25 +0,0 @@ -module.exports = { - env: { - node: true, - commonjs: true, - jest: true, - es6: true, - }, - extends: "eslint:recommended", - overrides: [ - { - env: { - node: true, - }, - files: [".eslintrc.{js,cjs}"], - parserOptions: { - sourceType: "script", - }, - }, - ], - parserOptions: { - ecmaVersion: "latest", - }, - rules: {}, - ignorePatterns: ["examples/*"], -}; diff --git a/.eslintrc.yml b/.eslintrc.yml new file mode 100644 index 00000000..8c1d5fdf --- /dev/null +++ b/.eslintrc.yml @@ -0,0 +1,17 @@ +env: + node: true + commonjs: true + jest: true + es6: true +extends: "eslint:recommended" +overrides: + - env: + node: true + files: + - ".eslintrc.{js,cjs}" + parserOptions: + sourceType: "script" +parserOptions: + ecmaVersion: "latest" +ignorePatterns: + - "examples/*" diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index 7375f3eb..021a16d0 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -36,5 +36,5 @@ jobs: DEFAULT_BRANCH: main GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} JAVASCRIPT_DEFAULT_STYLE: prettier - JAVASCRIPT_ES_CONFIG_FILE: .eslintrc.js + JAVASCRIPT_ES_CONFIG_FILE: .eslintrc.yml VALIDATE_JSCPD: false