Skip to content

Commit

Permalink
fix: remove eslint-plugin-yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ocavue committed Nov 23, 2022
1 parent 391a995 commit 2b1d71b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 52 deletions.
36 changes: 2 additions & 34 deletions packages/eslint-config-basic/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,13 @@ module.exports = defineConfig({
'eslint-plugin-unicorn',
'eslint-plugin-no-only-tests',
'eslint-plugin-import',
'eslint-plugin-jsonc',

'@typescript-eslint',
],

extends: [
'eslint:recommended',
'plugin:jsonc/recommended-with-jsonc',
'plugin:yml/standard',
'plugin:markdown/recommended',

// https://www.npmjs.com/package/eslint-plugin-import
Expand Down Expand Up @@ -75,9 +74,6 @@ module.exports = defineConfig({
// Require `Array.isArray()` instead of `instanceof Array`.
'unicorn/no-instanceof-array': 'error',

// yml
'yml/quotes': 'off',

// import
// External modules must be declared in the package.json
'import/no-extraneous-dependencies': 'error',
Expand All @@ -93,36 +89,12 @@ module.exports = defineConfig({
},

overrides: [
{
files: ['*.json', '*.json5'],
parser: 'jsonc-eslint-parser',
rules: {
'jsonc/array-bracket-spacing': ['error', 'never'],
'jsonc/comma-dangle': ['error', 'never'],
'jsonc/comma-style': ['error', 'last'],
'jsonc/indent': ['error', 2],
'jsonc/key-spacing': [
'error',
{ beforeColon: false, afterColon: true },
],
'jsonc/no-octal-escape': 'error',
'jsonc/object-curly-newline': [
'error',
{ multiline: true, consistent: true },
],
'jsonc/object-curly-spacing': ['error', 'always'],
'jsonc/object-property-newline': [
'error',
{ allowMultiplePropertiesPerLine: true },
],
},
},
{
files: ['package.json'],
parser: 'jsonc-eslint-parser',
rules: {
'jsonc/sort-keys': [
'error',
'warn',
{
pathPattern: '^$',
order: [
Expand Down Expand Up @@ -175,10 +147,6 @@ module.exports = defineConfig({
],
},
},
{
files: ['*.yaml', '*.yml'],
parser: 'yaml-eslint-parser',
},
{
// Code blocks in markdown file
files: ['**/*.md/*.*'],
Expand Down
1 change: 0 additions & 1 deletion packages/eslint-config-basic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"eslint-plugin-markdown": "^3.0.0",
"eslint-plugin-no-only-tests": "^3.1.0",
"eslint-plugin-unicorn": "^45.0.0",
"eslint-plugin-yml": "^1.2.0",
"yaml-eslint-parser": "^1.1.0"
},
"peerDependencies": {
Expand Down
17 changes: 0 additions & 17 deletions pnpm-lock.yaml

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

0 comments on commit 2b1d71b

Please sign in to comment.