Pārlūkot izejas kodu

Update eslint.config.js

Lutz Roeder 9 mēneši atpakaļ
vecāks
revīzija
e6846a0fa9
2 mainītis faili ar 6 papildinājumiem un 1 dzēšanām
  1. 5 0
      eslint.config.js
  2. 1 1
      package.js

+ 5 - 0
eslint.config.js

@@ -11,6 +11,11 @@ export default [
             },
             sourceType: 'module'
         },
+        ignores: [
+            'dist/**',
+            'node_moduels/**',
+            'third_party/**',
+        ],
         rules: {
             'accessor-pairs': 'error',
             'array-bracket-spacing': 'error',

+ 1 - 1
package.js

@@ -524,7 +524,7 @@ const publish = async (target) => {
 const lint = async () => {
     await install();
     writeLine('eslint');
-    await exec('npx eslint *.*js source/*.*js test/*.*js publish/*.*js tools/*.js --cache --cache-location ./dist/lint/.eslintcache');
+    await exec('npx eslint --cache --cache-location ./dist/lint/.eslintcache');
     writeLine('ruff');
     await exec('python -m ruff check . --quiet');
 };