-
Notifications
You must be signed in to change notification settings - Fork 12
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 #4 from buttreygoodness/fix/bug-1
fix: children of imageFile missing on build
- Loading branch information
Showing
6 changed files
with
147 additions
and
35 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,18 @@ | ||
root=true | ||
|
||
[*] | ||
end_of_line = lf | ||
insert_final_newline = true | ||
charset = utf-8 | ||
indent_style = tab | ||
trim_trailing_whitespace = true | ||
|
||
[{package.json,*.yml,*.yaml}] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[Dockerfile] | ||
indent_style = tab | ||
|
||
[Makefile] | ||
indent_style = tab |
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,71 @@ | ||
const defaultRules = { | ||
// No console statements in production | ||
'no-console': process.env.NODE_ENV !== 'development' ? 'error' : 'off', | ||
// No debugger statements in production | ||
'no-debugger': process.env.NODE_ENV !== 'development' ? 'error' : 'off', | ||
// Enforce prettier formatting | ||
'prettier/prettier': 'error', | ||
}; | ||
|
||
module.exports = { | ||
// Stop looking for ESLint configurations in parent folders | ||
root: true, | ||
// Global variables: Browser and Node.js | ||
env: { | ||
browser: true, | ||
node: true, | ||
}, | ||
// Basic configuration for js files | ||
plugins: ['@typescript-eslint', 'prettier'], | ||
extends: ['eslint:recommended', 'prettier'], | ||
rules: defaultRules, | ||
parserOptions: { | ||
ecmaVersion: 2020, | ||
}, | ||
overrides: [ | ||
// Parse rollup configuration as module | ||
{ | ||
files: ['rollup.config.js', 'vite.config.js'], | ||
parserOptions: { | ||
sourceType: 'module', | ||
}, | ||
}, | ||
{ | ||
files: ['**/*.test.js'], | ||
env: { | ||
jest: true, | ||
}, | ||
plugins: ['jest'], | ||
}, | ||
// Configuration for ts/vue files | ||
{ | ||
files: ['*.ts', '*.vue'], | ||
parser: 'vue-eslint-parser', | ||
parserOptions: { | ||
parser: '@typescript-eslint/parser', | ||
}, | ||
extends: [ | ||
'plugin:vue/vue3-recommended', | ||
'eslint:recommended', | ||
'plugin:@typescript-eslint/recommended', | ||
'prettier', | ||
], | ||
rules: { | ||
...defaultRules, | ||
'vue/multi-word-component-names': 'off', | ||
// It's recommended to turn off this rule on TypeScript projects | ||
'no-undef': 'off', | ||
// Allow ts-directive comments (used to suppress TypeScript compiler errors) | ||
'@typescript-eslint/ban-ts-comment': 'off', | ||
// Allow usage of the any type (consider to enable this rule later on) | ||
'@typescript-eslint/no-explicit-any': 'off', | ||
// Allow usage of require statements (consider to enable this rule later on) | ||
'@typescript-eslint/no-var-requires': 'off', | ||
// Allow non-null assertions for now (consider to enable this rule later on) | ||
'@typescript-eslint/no-non-null-assertion': 'off', | ||
// Allow unused arguments and variables when they begin with an underscore | ||
'@typescript-eslint/no-unused-vars': ['warn', { argsIgnorePattern: '^_', varsIgnorePattern: '^_' }], | ||
}, | ||
}, | ||
], | ||
}; |
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,3 +1,4 @@ | ||
.DS_Store | ||
node_modules | ||
.vscode | ||
yarn.lock |
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,7 @@ | ||
module.exports = { | ||
htmlWhitespaceSensitivity: 'ignore', | ||
printWidth: 120, | ||
singleQuote: true, | ||
useTabs: true, | ||
proseWrap: 'always', | ||
}; |
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