-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #74 from idebenone/chore/update-workflow-deps
chore : update Github workflows and dependencies
- Loading branch information
Showing
12 changed files
with
1,821 additions
and
618 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
root = false | ||
|
||
[*] | ||
charset = utf-8 | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
quote_type = single |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
name: ESLint CodeX | ||
|
||
on: [pull_request] | ||
|
||
jobs: | ||
lint: | ||
name: ESlint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- run: yarn install | ||
- run: yarn lint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
import Codex from "eslint-config-codex"; | ||
import { plugin as TsPlugin, parser as TsParser } from 'typescript-eslint'; | ||
|
||
export default [ | ||
...Codex, | ||
{ | ||
files: ['src/**/*.ts'], | ||
languageOptions: { | ||
parser: TsParser, | ||
parserOptions: { | ||
project: './tsconfig.json', | ||
tsconfigRootDir: './', | ||
sourceType: 'module', | ||
}, | ||
}, | ||
rules: { | ||
'n/no-missing-import': ['off'], | ||
'n/no-unsupported-features/node-builtins': ['off'], | ||
'jsdoc/require-returns-description': ['off'], | ||
'@typescript-eslint/naming-convention': [ | ||
'error', | ||
{ | ||
'selector': 'variable', | ||
'format': ['camelCase'], | ||
'leadingUnderscore': 'allow' | ||
}, | ||
], | ||
'@typescript-eslint/no-unsafe-member-access': ['off'], | ||
'@typescript-eslint/no-restricted-types': ['error', | ||
{ | ||
'types': { | ||
'String': "Use 'string' instead.", | ||
'Boolean': "Use 'boolean' instead.", | ||
'Number': "Use 'number' instead.", | ||
'Symbol': "Use 'symbol' instead.", | ||
'Object': "Use 'object' instead, or define a more specific type.", | ||
'Function': "Use a specific function type instead, like '(arg: type) => returnType'." | ||
} | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
ignores: ['dev/**', 'eslint.config.mjs', 'vite.config.js', 'postcss.config.js'] | ||
} | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@editorjs/code", | ||
"version": "2.9.1", | ||
"version": "2.9.2", | ||
"keywords": [ | ||
"codex editor", | ||
"code", | ||
|
@@ -26,21 +26,23 @@ | |
"scripts": { | ||
"dev": "vite", | ||
"build": "vite build", | ||
"lint": "eslint src/**.ts --ext .ts", | ||
"lint:errors": "eslint src/**.ts --quiet", | ||
"lint:fix": "eslint src/**.ts --fix" | ||
"lint": "eslint", | ||
"lint:errors": "eslint --quiet", | ||
"lint:fix": "eslint --fix" | ||
}, | ||
"author": { | ||
"name": "CodeX Team", | ||
"email": "[email protected]" | ||
}, | ||
"devDependencies": { | ||
"@editorjs/editorjs": "^2.30.2", | ||
"@typescript-eslint/eslint-plugin": "^7.16.1", | ||
"@typescript-eslint/parser": "^7.16.1", | ||
"eslint": "^8.57.0", | ||
"@typescript-eslint/eslint-plugin": "^8.4.0", | ||
"@typescript-eslint/parser": "^8.4.0", | ||
"eslint": "^9.9.1", | ||
"eslint-config-codex": "^2.0.2", | ||
"typescript": "^5.5.3", | ||
"vite": "^4.5.0", | ||
"typescript-eslint": "^8.4.0", | ||
"vite": "^5.4.3", | ||
"vite-plugin-css-injected-by-js": "^3.3.0", | ||
"vite-plugin-dts": "^3.9.1" | ||
}, | ||
|
Oops, something went wrong.