Skip to content

Commit

Permalink
Merge pull request #2357 from neviaumi/dependabot/npm_and_yarn/eslint…
Browse files Browse the repository at this point in the history
…-plugin-perfectionist-4.1.2

Bump eslint-plugin-perfectionist from 3.9.1 to 4.1.2
  • Loading branch information
github-actions[bot] authored Nov 28, 2024
2 parents 163498c + ca02471 commit a2324ad
Show file tree
Hide file tree
Showing 4 changed files with 131 additions and 46 deletions.
4 changes: 4 additions & 0 deletions .fleet/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"editor.formatOnSave": true,
"nodejs.typescript.rebuildOnChanges": false
}
133 changes: 107 additions & 26 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/eslint-config-code-sorting/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"dependencies": {
"eslint-plugin-perfectionist": "3.9.1"
"eslint-plugin-perfectionist": "4.1.2"
},
"devDependencies": {
"eslint": "9.15.0",
Expand Down
38 changes: 19 additions & 19 deletions packages/eslint-config-text-document/json.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,25 @@ import eslintParserJson from 'jsonc-eslint-parser';

import pkgJson from './package.json' with { type: 'json' };

export function useJSONEslintConfig() {
const jsonEslintConfig = {
files: ['**/*.json'],
ignores: ['**/package-lock.json'],
languageOptions: {
parser: eslintParserJson,
},
name: pkgJson.name,
plugins: {
jsonc: eslintPluginJson,
},
rules: {
...eslintPluginJson.configs.prettier.rules,
'jsonc/sort-keys': 'error',
},
};
return jsonEslintConfig;
}

export function usePackageJsonEslintConfig(override = {}) {
const packageJsonEslintConfig = {
files: ['**/package.json'],
Expand Down Expand Up @@ -92,22 +111,3 @@ export function usePackageJsonEslintConfig(override = {}) {
},
});
}

export function useJSONEslintConfig() {
const jsonEslintConfig = {
files: ['**/*.json'],
ignores: ['**/package-lock.json'],
languageOptions: {
parser: eslintParserJson,
},
name: pkgJson.name,
plugins: {
jsonc: eslintPluginJson,
},
rules: {
...eslintPluginJson.configs.prettier.rules,
'jsonc/sort-keys': 'error',
},
};
return jsonEslintConfig;
}

0 comments on commit a2324ad

Please sign in to comment.