@perfective/eslint-config-react 0.14.0 → 0.15.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License
2
2
 
3
- Copyright (c) 2020-2022 Andrey Mikheychik (https://github.com/amikheychik)
3
+ Copyright (c) 2020-2024 Andrey Mikheychik (https://github.com/amikheychik)
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.adoc CHANGED
@@ -39,7 +39,7 @@ npm install --save-dev \
39
39
  eslint-plugin-jest-formatting \
40
40
  eslint-plugin-jsdoc \
41
41
  eslint-plugin-jsx-a11y \
42
- eslint-plugin-node \
42
+ eslint-plugin-n \
43
43
  eslint-plugin-prefer-arrow \
44
44
  eslint-plugin-promise \
45
45
  eslint-plugin-react \
@@ -47,6 +47,7 @@ npm install --save-dev \
47
47
  eslint-plugin-react-hooks-ssr \
48
48
  eslint-plugin-react-perf \
49
49
  eslint-plugin-rxjs \
50
+ eslint-plugin-security \
50
51
  eslint-plugin-simple-import-sort \
51
52
  eslint-plugin-sonarjs \
52
53
  eslint-plugin-testing-library \
package/README.md CHANGED
@@ -37,6 +37,7 @@ npm install --save-dev \
37
37
  eslint-plugin-jest-formatting \
38
38
  eslint-plugin-jsdoc \
39
39
  eslint-plugin-jsx-a11y \
40
+ eslint-plugin-n \
40
41
  eslint-plugin-node \
41
42
  eslint-plugin-prefer-arrow \
42
43
  eslint-plugin-promise \
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@perfective/eslint-config-react",
3
- "version": "0.14.0",
3
+ "version": "0.15.1",
4
4
  "description": "ESLint shareable rules configuration for React",
5
5
  "keywords": ["react", "code quality", "code standard", "code style", "eslint", "eslint-config", "lint", "perfective", "typescript"],
6
6
  "author": "Andrey Mikheychik <a.mikheychik@gmail.com>",
@@ -11,11 +11,11 @@
11
11
  },
12
12
  "license": "MIT",
13
13
  "dependencies": {
14
- "@perfective/eslint-config": "~0.25.1"
14
+ "@perfective/eslint-config": "~0.26.1"
15
15
  },
16
16
  "peerDependencies": {
17
- "eslint-plugin-jsx-a11y": "^6.8.0",
18
- "eslint-plugin-react": "^7.34.2",
17
+ "eslint-plugin-jsx-a11y": "^6.9.0",
18
+ "eslint-plugin-react": "^7.34.3",
19
19
  "eslint-plugin-react-hooks": "^4.6.2",
20
20
  "eslint-plugin-react-hooks-ssr": "^0.1.5",
21
21
  "eslint-plugin-react-perf": "^3.3.2"
@@ -3,10 +3,9 @@ const typescript_eslint_1 = require("./rules/typescript-eslint");
3
3
  const unicorn_1 = require("./rules/unicorn");
4
4
  module.exports = {
5
5
  rules: {
6
- '@typescript-eslint/indent': ['warn', 4, {
6
+ '@stylistic/ts/indent': ['warn', 4, {
7
7
  SwitchCase: 1,
8
8
  ignoredNodes: [
9
- 'JSXAttribute',
10
9
  'TSTypeParameterInstantiation',
11
10
  ],
12
11
  }],
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.typescriptEslintNamingConvention = void 0;
3
+ exports.typescriptEslintNamingConvention = typescriptEslintNamingConvention;
4
4
  const rules_1 = require("@perfective/eslint-config/rules");
5
5
  function typescriptEslintNamingConvention(extensions = []) {
6
6
  return (0, rules_1.typescriptEslintNamingConvention)([
@@ -15,4 +15,3 @@ function typescriptEslintNamingConvention(extensions = []) {
15
15
  },
16
16
  ].concat(extensions));
17
17
  }
18
- exports.typescriptEslintNamingConvention = typescriptEslintNamingConvention;
@@ -1,8 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.unicornPreventAbbreviations = void 0;
3
+ exports.unicornPreventAbbreviations = unicornPreventAbbreviations;
4
4
  const rules_1 = require("@perfective/eslint-config/rules");
5
5
  function unicornPreventAbbreviations(replacements = {}, options = {}) {
6
6
  return (0, rules_1.unicornPreventAbbreviations)(Object.assign({ prop: false, props: false, ref: false, refs: false }, replacements), options);
7
7
  }
8
- exports.unicornPreventAbbreviations = unicornPreventAbbreviations;