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:
parent
af2c60f722
commit
f038f479b4
@ -1,6 +1,6 @@
|
||||
{
|
||||
"extends": [
|
||||
"plugin:github/es6",
|
||||
"plugin:github/internal",
|
||||
"plugin:github/recommended"
|
||||
],
|
||||
"env": {
|
||||
|
15
.github/workflows/ci.yml
vendored
15
.github/workflows/ci.yml
vendored
@ -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
1
.gitignore
vendored
@ -13,3 +13,4 @@ docs/dist
|
||||
node_modules/
|
||||
public/
|
||||
searchIndex.js
|
||||
package-lock.json
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"extends": [
|
||||
"plugin:github/react"
|
||||
"plugin:react/recommended"
|
||||
],
|
||||
"rules": {
|
||||
"import/no-namespace": 0
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"extends": [
|
||||
"plugin:github/react",
|
||||
"plugin:react/recommended",
|
||||
"plugin:jsx-a11y/recommended"
|
||||
],
|
||||
"rules": {
|
||||
|
23612
package-lock.json
generated
23612
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -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",
|
||||
|
@ -1 +1 @@
|
||||
module.exports = require('eslint-plugin-github/prettier.config')
|
||||
module.exports = require('@github/prettier-config')
|
||||
|
Loading…
Reference in New Issue
Block a user