1
1
mirror of https://github.com/primer/css.git synced 2024-08-17 04:00:28 +03:00

Updating eslint config

This commit is contained in:
Jon Rohan 2021-03-26 16:46:41 -07:00
parent af2c60f722
commit f038f479b4
No known key found for this signature in database
GPG Key ID: B0BBE304A9A0AECB
9 changed files with 4161 additions and 28115 deletions

View File

@ -1,6 +1,6 @@
{
"extends": [
"plugin:github/es6",
"plugin:github/internal",
"plugin:github/recommended"
],
"env": {

View File

@ -1,7 +1,7 @@
name: CI
on: [push]
jobs:
lint_css:
stylelint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
@ -9,11 +9,22 @@ jobs:
with:
node-version: 12
- run: yarn
- name: Lint CSS with Stylelint
- name: Lint source files
run: yarn stylelint
- name: Look for unused stylelint:disable lines
run: yarn stylelint -- --report-needless-disables
eslint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@master
with:
node-version: 12
- run: yarn
- name: Lint workflow files
run: eslint script deprecations.js lib .storybook docs
test:
runs-on: ubuntu-latest
steps:

1
.gitignore vendored
View File

@ -13,3 +13,4 @@ docs/dist
node_modules/
public/
searchIndex.js
package-lock.json

View File

@ -1,6 +1,6 @@
{
"extends": [
"plugin:github/react"
"plugin:react/recommended"
],
"rules": {
"import/no-namespace": 0

View File

@ -1,6 +1,6 @@
{
"extends": [
"plugin:github/react",
"plugin:react/recommended",
"plugin:jsx-a11y/recommended"
],
"rules": {

23612
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -43,6 +43,7 @@
"devDependencies": {
"@changesets/changelog-github": "^0.3.0",
"@changesets/cli": "^2.14.1",
"@github/prettier-config": "^0.0.4",
"@storybook/addon-viewport": "5.3.18",
"@storybook/react": "5.3.18",
"autoprefixer": "9.8.6",
@ -51,8 +52,10 @@
"css-loader": "1.0.0",
"cssstats": "3.3.0",
"details-dialog-element": "^1.4.0",
"eslint": "4.19.1",
"eslint-plugin-github": "1.0.0",
"eslint": "^7.23.0",
"eslint-plugin-github": "^4.1.2",
"eslint-plugin-jsx-a11y": "^6.4.1",
"eslint-plugin-react": "^7.23.1",
"filesize": "4.1.2",
"fs-extra": "^4.0.2",
"gh-pages": "^1.0.0",

View File

@ -1 +1 @@
module.exports = require('eslint-plugin-github/prettier.config')
module.exports = require('@github/prettier-config')

8633
yarn.lock

File diff suppressed because it is too large Load Diff