Skip to content

Commit

Permalink
Upgrade eslint config :-/
Browse files Browse the repository at this point in the history
  • Loading branch information
platypii committed Sep 15, 2024
1 parent 7b7e2ee commit d07684d
Show file tree
Hide file tree
Showing 7 changed files with 75 additions and 85 deletions.
71 changes: 0 additions & 71 deletions .eslintrc.json

This file was deleted.

2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
public/build/app.js -diff
*.js.map -diff
60 changes: 60 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
import javascript from '@eslint/js'
import typescript from 'typescript-eslint'
import globals from 'globals'

export default [
{
plugins: {
typescript,
},

ignores: ['public/build/*'],

languageOptions: {
globals: {
...globals.browser,
...globals.node,
},
},

rules: {
...javascript.configs.recommended.rules,
...typescript.configs.recommended.rules,
'arrow-spacing': 'error',
camelcase: 'off',
'comma-spacing': 'error',
'comma-dangle': ['error', 'always-multiline'],
'eol-last': 'error',
eqeqeq: 'error',
'func-style': ['error', 'declaration'],
indent: ['error', 2],
'no-constant-condition': 'off',
'no-extra-parens': 'error',
'no-multi-spaces': 'error',
'no-trailing-spaces': 'error',
'no-unused-vars': 'warn',
'no-useless-concat': 'error',
'no-useless-rename': 'error',
'no-useless-return': 'error',
'no-var': 'error',
'object-curly-spacing': ['error', 'always'],
'prefer-const': 'warn',
'prefer-destructuring': ['warn', {
object: true,
array: false,
}],
'prefer-promise-reject-errors': 'error',
quotes: ['error', 'single'],
'require-await': 'warn',
semi: ['error', 'never'],

'sort-imports': ['error', {
ignoreDeclarationSort: true,
ignoreMemberSort: false,
memberSyntaxSortOrder: ['none', 'all', 'multiple', 'single'],
}],

'space-infix-ops': 'error',
},
},
]
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
"scripts": {
"build": "rollup -c",
"coverage": "vitest run --coverage --coverage.include=src",
"lint": "eslint src test",
"lint": "eslint",
"serve": "node src/cli.js",
"url": "node src/cli.js https://hyperparam.blob.core.windows.net/hyperparam/starcoderdata-js-00000-of-00065.parquet",
"test": "vitest run"
},
"dependencies": {
"highlight.js": "11.10.0",
"hightable": "0.3.1",
"hightable": "0.4.0",
"hyparquet": "1.3.0",
"hyparquet-compressors": "0.1.4"
},
Expand All @@ -34,22 +34,22 @@
"@rollup/plugin-terser": "0.4.4",
"@rollup/plugin-typescript": "11.1.6",
"@testing-library/react": "16.0.1",
"@types/node": "22.5.4",
"@types/node": "22.5.5",
"@types/react": "18.3.5",
"@types/react-dom": "18.3.0",
"@typescript-eslint/eslint-plugin": "8.5.0",
"@vitejs/plugin-react": "4.3.1",
"@vitest/coverage-v8": "2.0.5",
"eslint": "8.57.0",
"eslint-plugin-import": "2.30.0",
"eslint-plugin-jsdoc": "50.2.2",
"@vitest/coverage-v8": "2.1.1",
"eslint": "9.10.0",
"globals": "15.9.0",
"jsdom": "25.0.0",
"react": "18.3.1",
"react-dom": "18.3.1",
"rollup": "4.21.2",
"rollup": "4.21.3",
"rollup-plugin-postcss": "4.0.2",
"tslib": "2.7.0",
"typescript": "5.6.2",
"vitest": "2.0.5"
"typescript-eslint": "8.5.0",
"vitest": "2.1.1"
}
}
4 changes: 2 additions & 2 deletions public/build/app.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/build/app.js.map

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions public/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
height: 100vh;
}

/* brand logo */
.brand {
color: #fff;
display: flex;
Expand Down Expand Up @@ -65,8 +66,6 @@ main {
min-width: 48px;
background-image: linear-gradient(to bottom, #667, #585669);
box-shadow: 0 0 4px rgba(10, 10, 10, 0.5);
display: flex;
flex-direction: column;
height: 100vh;
}

Expand Down

0 comments on commit d07684d

Please sign in to comment.