Skip to content

Commit

Permalink
Revert "Remove eslint changes"
Browse files Browse the repository at this point in the history
This reverts commit 82d2ce9.
  • Loading branch information
jgerigmeyer committed Nov 29, 2023
1 parent 82d2ce9 commit aac6e62
Show file tree
Hide file tree
Showing 6 changed files with 1,436 additions and 73 deletions.
97 changes: 97 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
module.exports = {
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"impliedStrict": true,
},
},
"env": {
"browser": true,
"es6": true,
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/stylistic",
"plugin:@stylistic/disable-legacy",
],
"plugins": ["@typescript-eslint", "@stylistic"],
"rules": {
// Override recommended ESLint rules
// https://eslint.org/docs/latest/rules/
"no-cond-assign": 0,
"no-empty": 0,
"no-redeclare": 0,
"no-setter-return": 0,
"no-sparse-arrays": 0,

// Override recommended typescript-eslint rules
// https://typescript-eslint.io/rules/
"@typescript-eslint/no-empty-function": 0,
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/no-loss-of-precision": 0,
"@typescript-eslint/no-unused-vars": 0,

// Enable additional ESLint rules
"curly": 1,
"no-useless-call": 1,

// Enable ESLint Stylistic rules
// https://eslint.style/packages/default#rules
"@stylistic/arrow-spacing": 1,
"@stylistic/brace-style": [1, "stroustrup"],
"@stylistic/comma-spacing": 1,
"@stylistic/eol-last": 1,
"@stylistic/indent": [1, "tab", { "SwitchCase": 1, "outerIIFEBody": 0 }],
"@stylistic/keyword-spacing": 1,
"@stylistic/no-mixed-spaces-and-tabs": [1, "smart-tabs"],
"@stylistic/no-trailing-spaces": 1,
"@stylistic/quotes": [
1,
"double",
{ "avoidEscape": true, "allowTemplateLiterals": true },
],
"@stylistic/semi": 1,
"@stylistic/space-before-function-paren": 1,
"@stylistic/spaced-comment": [
1,
"always",
{ "block": { "exceptions": ["*"] } },
],
},
"overrides": [
{
"files": [
"apps/**/*",
"assets/**/*",
"get/**/*",
"notebook/**/*",
"scripts/**/*",
"tests/**/*",
],
"rules": {
// These directories reference implicit global variables
"no-undef": 0,
},
},
{
"files": ["*.cjs"],
"env": {
"browser": false,
"node": true,
},
"rules": {
"@typescript-eslint/no-var-requires": 0,
},
},
{
"files": ["types/test/**/*"],
"rules": {
"@typescript-eslint/ban-ts-comment": 0,
},
},
],
};
37 changes: 0 additions & 37 deletions .eslintrc.json

This file was deleted.

23 changes: 23 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Lint & Test Types
on:
push:
pull_request:
types: [reopened]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
lint:
name: Lint & Test Types
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "lts/*"

- run: npm install
- run: npm run lint:ci
21 changes: 0 additions & 21 deletions .github/workflows/test-types.yml

This file was deleted.

Loading

0 comments on commit aac6e62

Please sign in to comment.