Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Linting fixes#54

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
ShMcK merged 4 commits intomasterfromfeature/test-error-message
Nov 16, 2019
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions.eslintrc.js
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
module.exports = {
parser: '@typescript-eslint/parser', // Specifies the ESLint parser
extends: [
'plugin:@typescript-eslint/recommended', // Uses the recommended rules from the @typescript-eslint/eslint-plugin
'prettier/@typescript-eslint', // Uses eslint-config-prettier to disable ESLint rules from @typescript-eslint/eslint-plugin that would conflict with prettier
'plugin:prettier/recommended', // Enables eslint-plugin-prettier and displays prettier errors as ESLint errors. Make sure this is always the last configuration in the extends array
],
parserOptions: {
ecmaVersion: 2018, // Allows for the parsing of modern ECMAScript features
sourceType: 'module', // Allows for the use of imports
},
rules: {
// Place to specify ESLint rules. Can be used to overwrite rules specified from the extended configs
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/ban-ts-ignore': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/camelcase': 'off',
},
};
62 changes: 24 additions & 38 deletions.vscode/settings.json
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,27 @@
{
// autofix
// "eslint.autoFixOnSave": true,
// "eslint.validate": [
// "javascript",
// {
// "language": "typescript",
// "autoFix": true
// },
// {
// "language": "typescriptreact",
// "autoFix": true
// }
// ],
"editor.codeActionsOnSave": {
"source.fixAll": true
},
"tslint.enable": true,
"[javascript]": {
"editor.formatOnSave": true
},
"[typescript]": {
"editor.formatOnSave": true
},
// Turn off tsc task auto detection since we have the necessary tasks as npm scripts
// "typescript.tsc.autoDetect": "off",
"files.exclude": {
"out": false // set this to true to hide the "out" folder with the compiled JS files
},
"search.exclude": {
"out": true // set this to false to include "out" folder in search results
"editor.formatOnSave": true,
"eslint.autoFixOnSave": true,
"eslint.validate": ["javascript", { "language": "typescript", "autoFix": true }],
"[javascript]": {
"editor.formatOnSave": false
},

// styles
"editor.formatOnSave": true,
"workbench.colorCustomizations": {
"activityBar.background": "#000000",
"titleBar.activeBackground": "#000000",
"titleBar.activeForeground": "#FFFFFF"
}
"[typescript]": {
"editor.formatOnSave": false
},
// Turn off tsc task auto detection since we have the necessary tasks as npm scripts
"files.exclude": {
"build": false // set this to true to hide the "out" folder with the compiled JS files
},
"search.exclude": {
"build": true // set this to false to include "out" folder in search results
},
// styles
"workbench.colorCustomizations": {
"activityBar.background": "#000000",
"titleBar.activeBackground": "#000000",
"titleBar.activeForeground": "#FFFFFF"
},
"cSpell.ignoreWords": [
"camelcase"
]
}
5 changes: 5 additions & 0 deletionsjest.config.js
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
module.exports = {
preset: 'ts-jest',
verbose: true,
testPathIgnorePatterns: ['build'],
}
Loading

[8]ページ先頭

©2009-2025 Movatter.jp