diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml index 1e7f59ac7..c4d031e9c 100644 --- a/.github/FUNDING.yml +++ b/.github/FUNDING.yml @@ -1,3 +1,3 @@ github: -- ota-meshi -- FloEdelmann + - ota-meshi + - FloEdelmann diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 66f6af0e8..b8f7522a7 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -13,14 +13,14 @@ jobs: name: Lint runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v3 - - name: Install Node.js - uses: actions/setup-node@v3 - - name: Install Packages - run: npm install --legacy-peer-deps - - name: Lint - run: npm run lint + - name: Checkout + uses: actions/checkout@v3 + - name: Install Node.js + uses: actions/setup-node@v3 + - name: Install Packages + run: npm install --legacy-peer-deps + - name: Lint + run: npm run lint test: name: Test @@ -41,49 +41,49 @@ jobs: runs-on: ${{ matrix.os }} steps: - - name: Checkout - uses: actions/checkout@v3 - - name: Install Node.js v${{ matrix.node }} - uses: actions/setup-node@v3 - with: - node-version: ${{ matrix.node }} - - name: Install Packages - run: npm install --legacy-peer-deps - - name: Install ESLint v${{ matrix.eslint }} - run: npm install --save-dev eslint@${{ matrix.eslint }} --legacy-peer-deps - - name: Test - run: npm test + - name: Checkout + uses: actions/checkout@v3 + - name: Install Node.js v${{ matrix.node }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node }} + - name: Install Packages + run: npm install --legacy-peer-deps + - name: Install ESLint v${{ matrix.eslint }} + run: npm install --save-dev eslint@${{ matrix.eslint }} --legacy-peer-deps + - name: Test + run: npm test test-for-ts-eslint-v5: name: Test runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v3 - - name: Install Node.js - uses: actions/setup-node@v3 - with: - node-version: 18 - - name: Install Packages - run: npm install --legacy-peer-deps - - name: Install typescript-eslint v5 - run: npm install -D @typescript-eslint/parser - - name: Test - run: npm test + - name: Checkout + uses: actions/checkout@v3 + - name: Install Node.js + uses: actions/setup-node@v3 + with: + node-version: 18 + - name: Install Packages + run: npm install --legacy-peer-deps + - name: Install typescript-eslint v5 + run: npm install -D @typescript-eslint/parser + - name: Test + run: npm test test-for-eslint-v8-without-eslint-stylistic: name: Test runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v3 - - name: Install Node.js - uses: actions/setup-node@v3 - - name: Install Packages - run: npm install --legacy-peer-deps - - name: Uninstall @stylistic/eslint-plugin - run: npm uninstall -D @stylistic/eslint-plugin - - name: Install eslint v8 - run: npm install -D eslint@8 - - name: Test - run: npm test + - name: Checkout + uses: actions/checkout@v3 + - name: Install Node.js + uses: actions/setup-node@v3 + - name: Install Packages + run: npm install --legacy-peer-deps + - name: Uninstall @stylistic/eslint-plugin + run: npm uninstall -D @stylistic/eslint-plugin + - name: Install eslint v8 + run: npm install -D eslint@8 + - name: Test + run: npm test diff --git a/.markdownlint.yml b/.markdownlint.yml index 42e207971..6591a3543 100644 --- a/.markdownlint.yml +++ b/.markdownlint.yml @@ -15,7 +15,7 @@ code-block-style: code-fence-style: style: backtick emphasis-style: - style: asterisk + style: underscore heading-style: style: atx hr-style: diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 000000000..d341f1772 --- /dev/null +++ b/.prettierignore @@ -0,0 +1,2 @@ +tests/fixtures/ +.github/ISSUE_TEMPLATE/*.md diff --git a/.vscode/launch.json b/.vscode/launch.json index 324a79864..2fa4db9b2 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -6,10 +6,7 @@ "request": "launch", "name": "Start testing", "program": "${workspaceFolder}/node_modules/.bin/mocha", - "args": [ - "${file}", - "--watch" - ], + "args": ["${file}", "--watch"], "console": "integratedTerminal" } ] diff --git a/.vscode/settings.json b/.vscode/settings.json index 3c179f5a7..f80681b66 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,21 +1,15 @@ { - "editor.tabSize": 2, - "eslint.experimental.useFlatConfig": true, - "eslint.validate": [ - "javascript", - "javascriptreact", - "vue", - "json", - "jsonc" - ], - "typescript.tsdk": "./node_modules/typescript/lib", - "vetur.validation.script": false, - "[typescript]": { - "editor.formatOnSave": true, - "editor.defaultFormatter": "esbenp.prettier-vscode" - }, - "[javascript]": { - "editor.formatOnSave": true, - "editor.defaultFormatter": "esbenp.prettier-vscode" - }, + "editor.tabSize": 2, + "eslint.experimental.useFlatConfig": true, + "eslint.validate": ["javascript", "javascriptreact", "vue", "json", "jsonc"], + "typescript.tsdk": "./node_modules/typescript/lib", + "vetur.validation.script": false, + "[typescript]": { + "editor.formatOnSave": true, + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + "[javascript]": { + "editor.formatOnSave": true, + "editor.defaultFormatter": "esbenp.prettier-vscode" + } } diff --git a/docs/rules/array-bracket-newline.md b/docs/rules/array-bracket-newline.md index 5085b1da8..10182aeba 100644 --- a/docs/rules/array-bracket-newline.md +++ b/docs/rules/array-bracket-newline.md @@ -5,6 +5,7 @@ title: vue/array-bracket-newline description: Enforce linebreaks after opening and before closing array brackets in `