From 1a12e8f4fa6974e1488d76cbef996ed061f06d2d Mon Sep 17 00:00:00 2001 From: David Worms Date: Mon, 8 Jan 2024 09:34:18 +0100 Subject: [PATCH] build: eslint yml extension --- .gitignore | 2 +- .../csv-generate/{.eslintrc => .eslintrc.yml} | 15 ++++++------- .../csv-parse/{.eslintrc => .eslintrc.yml} | 15 ++++++------- .../{.eslintrc => .eslintrc.yml} | 15 ++++++------- packages/csv/{.eslintrc => .eslintrc.yml} | 15 ++++++------- packages/stream-transform/.eslintrc | 22 ------------------- packages/stream-transform/.eslintrc.yml | 21 ++++++++++++++++++ 7 files changed, 50 insertions(+), 55 deletions(-) rename packages/csv-generate/{.eslintrc => .eslintrc.yml} (66%) rename packages/csv-parse/{.eslintrc => .eslintrc.yml} (66%) rename packages/csv-stringify/{.eslintrc => .eslintrc.yml} (66%) rename packages/csv/{.eslintrc => .eslintrc.yml} (66%) delete mode 100644 packages/stream-transform/.eslintrc create mode 100644 packages/stream-transform/.eslintrc.yml diff --git a/.gitignore b/.gitignore index 7294920f5..647228987 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,6 @@ .* node_modules -!.eslintrc +!.eslintrc.yml !.github !.gitignore !.husky diff --git a/packages/csv-generate/.eslintrc b/packages/csv-generate/.eslintrc.yml similarity index 66% rename from packages/csv-generate/.eslintrc rename to packages/csv-generate/.eslintrc.yml index f13b763c6..a79c09cd4 100644 --- a/packages/csv-generate/.eslintrc +++ b/packages/csv-generate/.eslintrc.yml @@ -1,15 +1,14 @@ - env: - commonjs: true - es6: true - node: true + commonjs: true + es6: true + node: true extends: "eslint:recommended" globals: - Atomics: "readonly" - SharedArrayBuffer: "readonly" + Atomics: "readonly" + SharedArrayBuffer: "readonly" parserOptions: - ecmaVersion: 2020 - sourceType: "module" + ecmaVersion: 2020 + sourceType: "module" rules: no-var: "error" semi: "error" diff --git a/packages/csv-parse/.eslintrc b/packages/csv-parse/.eslintrc.yml similarity index 66% rename from packages/csv-parse/.eslintrc rename to packages/csv-parse/.eslintrc.yml index f13b763c6..a79c09cd4 100644 --- a/packages/csv-parse/.eslintrc +++ b/packages/csv-parse/.eslintrc.yml @@ -1,15 +1,14 @@ - env: - commonjs: true - es6: true - node: true + commonjs: true + es6: true + node: true extends: "eslint:recommended" globals: - Atomics: "readonly" - SharedArrayBuffer: "readonly" + Atomics: "readonly" + SharedArrayBuffer: "readonly" parserOptions: - ecmaVersion: 2020 - sourceType: "module" + ecmaVersion: 2020 + sourceType: "module" rules: no-var: "error" semi: "error" diff --git a/packages/csv-stringify/.eslintrc b/packages/csv-stringify/.eslintrc.yml similarity index 66% rename from packages/csv-stringify/.eslintrc rename to packages/csv-stringify/.eslintrc.yml index f13b763c6..a79c09cd4 100644 --- a/packages/csv-stringify/.eslintrc +++ b/packages/csv-stringify/.eslintrc.yml @@ -1,15 +1,14 @@ - env: - commonjs: true - es6: true - node: true + commonjs: true + es6: true + node: true extends: "eslint:recommended" globals: - Atomics: "readonly" - SharedArrayBuffer: "readonly" + Atomics: "readonly" + SharedArrayBuffer: "readonly" parserOptions: - ecmaVersion: 2020 - sourceType: "module" + ecmaVersion: 2020 + sourceType: "module" rules: no-var: "error" semi: "error" diff --git a/packages/csv/.eslintrc b/packages/csv/.eslintrc.yml similarity index 66% rename from packages/csv/.eslintrc rename to packages/csv/.eslintrc.yml index f13b763c6..a79c09cd4 100644 --- a/packages/csv/.eslintrc +++ b/packages/csv/.eslintrc.yml @@ -1,15 +1,14 @@ - env: - commonjs: true - es6: true - node: true + commonjs: true + es6: true + node: true extends: "eslint:recommended" globals: - Atomics: "readonly" - SharedArrayBuffer: "readonly" + Atomics: "readonly" + SharedArrayBuffer: "readonly" parserOptions: - ecmaVersion: 2020 - sourceType: "module" + ecmaVersion: 2020 + sourceType: "module" rules: no-var: "error" semi: "error" diff --git a/packages/stream-transform/.eslintrc b/packages/stream-transform/.eslintrc deleted file mode 100644 index f13b763c6..000000000 --- a/packages/stream-transform/.eslintrc +++ /dev/null @@ -1,22 +0,0 @@ - -env: - commonjs: true - es6: true - node: true -extends: "eslint:recommended" -globals: - Atomics: "readonly" - SharedArrayBuffer: "readonly" -parserOptions: - ecmaVersion: 2020 - sourceType: "module" -rules: - no-var: "error" - semi: "error" - indent: ["error", 2] - linebreak-style: ["error", "unix"] - no-multi-spaces: "error" - space-in-parens: "error" - no-multiple-empty-lines: "error" - prefer-const: "error" - no-use-before-define: "error" diff --git a/packages/stream-transform/.eslintrc.yml b/packages/stream-transform/.eslintrc.yml new file mode 100644 index 000000000..a79c09cd4 --- /dev/null +++ b/packages/stream-transform/.eslintrc.yml @@ -0,0 +1,21 @@ +env: + commonjs: true + es6: true + node: true +extends: "eslint:recommended" +globals: + Atomics: "readonly" + SharedArrayBuffer: "readonly" +parserOptions: + ecmaVersion: 2020 + sourceType: "module" +rules: + no-var: "error" + semi: "error" + indent: ["error", 2] + linebreak-style: ["error", "unix"] + no-multi-spaces: "error" + space-in-parens: "error" + no-multiple-empty-lines: "error" + prefer-const: "error" + no-use-before-define: "error"