Skip to content

Commit

Permalink
FIX pr comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruben Moreno committed Oct 18, 2024
1 parent becff07 commit 5fccebb
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 23 deletions.
32 changes: 14 additions & 18 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,28 +1,24 @@
import path from "node:path";
import { fileURLToPath } from "node:url";
import js from "@eslint/js";
import { FlatCompat } from "@eslint/eslintrc";

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all
baseDirectory: import.meta.dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all
});

export default [{
ignores: ["**/node_modules"],
ignores: ["**/node_modules"],
}, ...compat.extends(
"./packages/eslint-config-adidas-es5/index.js",
"./packages/eslint-config-adidas-env/node.js",
"./packages/eslint-config-adidas-es5/index.js",
"./packages/eslint-config-adidas-env/node.js",
), {
languageOptions: {
ecmaVersion: 2024,
sourceType: "script",
},
languageOptions: {
ecmaVersion: 2024,
sourceType: "script",
},

rules: {
"no-magic-numbers": "off",
},
}];
rules: {
"no-magic-numbers": "off",
},
}];
10 changes: 5 additions & 5 deletions packages/eslint-config-adidas-es15/README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[![npm version](https://badge.fury.io/js/eslint-config-adidas-es13.svg)](https://npmjs.com/package/eslint-config-adidas-es13)
[![npm version](https://badge.fury.io/js/eslint-config-adidas-es15.svg)](https://npmjs.com/package/eslint-config-adidas-es15)

# eslint-config-adidas-es13
# eslint-config-adidas-es15

ES13 (ES2022) ESLint rules.
ES15 (ES2024) ESLint rules.

These already extend `eslint-config-adidas-es9`.
These already extend `eslint-config-adidas-es13`.

This set of rules is not too restrictive since ES13 features are yet in evaluation.
This set of rules is not too restrictive since ES15 features are yet in evaluation.

## Install

Expand Down

0 comments on commit 5fccebb

Please sign in to comment.