diff --git a/.eslintrc.yml b/.eslintrc.yml index 32cb852..05b2918 100644 --- a/.eslintrc.yml +++ b/.eslintrc.yml @@ -1,19 +1,16 @@ extends: standard -env: - es6: true - node: true - -parserOptions: - ecmaVersion: 2022 - overrides: - files: [ '*.mjs' ] - parserOptions: - sourceType: module rules: no-restricted-globals: [ 2, require, __dirname ] + - + files: [ 'test/**' ] + env: { mocha: true } + - + files: [ 'lib/**' ] + parserOptions: { ecmaVersion: 2015 } ignorePatterns: - demo/ diff --git a/lib/.eslintrc.yml b/lib/.eslintrc.yml deleted file mode 100644 index 2c1d793..0000000 --- a/lib/.eslintrc.yml +++ /dev/null @@ -1,5 +0,0 @@ -env: - node: false - -parserOptions: - ecmaVersion: 2015 diff --git a/package.json b/package.json index e3bc47e..d8efc2d 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "markdown-it": "bin/markdown-it.mjs" }, "scripts": { - "lint": "eslint --ext js --ext mjs .", + "lint": "eslint .", "test": "npm run lint && CJS_ONLY=1 npm run build && c8 --exclude dist --exclude test -r text -r html -r lcov mocha && node support/specsplit.mjs", "doc": "node support/build_doc.mjs", "gh-doc": "npm run doc && gh-pages -d apidoc -f", diff --git a/test/.eslintrc.yml b/test/.eslintrc.yml deleted file mode 100644 index 9808c3b..0000000 --- a/test/.eslintrc.yml +++ /dev/null @@ -1,2 +0,0 @@ -env: - mocha: true