Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
13 changes: 12 additions & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module.exports = {

rules: {
// Some rules in this following shared region are not applied since they are overridden in subsequent regions
// #region shared with https://github.com/paranext/paranext-core/blob/main/.eslintrc.js except certain overrides
// #region shared with https://github.com/paranext/paranext-core/blob/main/.eslintrc.js

// #region ERB rules

Expand Down Expand Up @@ -117,6 +117,17 @@ module.exports = {
globalThis: 'readonly',
},
overrides: [
{
files: ['*.ts', '*.tsx'],
rules: {
// #region shared with https://github.com/paranext/paranext-core/blob/main/.eslintrc.js

// These are already handled by TypeScript
'no-dupe-class-members': 'off',

// #endregion
},
},
{
// Allow this file to have overrides to rules from paranext-core
files: ['.eslintrc.*js'],
Expand Down
11 changes: 8 additions & 3 deletions .stylelintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,27 @@ module.exports = {
},
],
rules: {
// Let Prettier handle the space between style property and value (they were fighting when a
// value was long enough to be on its own line but not long enough to span multiple lines)
'@stylistic/declaration-colon-space-after': null,
// Disable Stylelint's function parentheses control for Prettier compatibility
'@stylistic/function-parentheses-space-inside': 'never-single-line',
// Disable Stylelint's indentation control
'@stylistic/indentation': null,
// Let Prettier handle selector list formatting
'@stylistic/selector-list-comma-newline-after': null,
'at-rule-no-unknown': null,
'color-named': null,
'max-nesting-depth': 2,
'no-descending-specificity': null,
'selector-max-compound-selectors': 4,
'selector-max-id': 1,
'at-rule-no-unknown': null,
'scss/at-rule-no-unknown': [
true,
{
ignoreAtRules: ['tailwind', 'apply', 'layer', 'screen', 'variants'],
},
],
'selector-max-compound-selectors': 4,
'selector-max-id': 1,
},
};

Expand Down
4 changes: 3 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@
"editor.rulers": [100],
"editor.wordWrapColumn": 100,

"eslint.validate": ["javascript", "javascriptreact", "html", "typescriptreact"],
"eslint.validate": ["html", "javascript", "javascriptreact", "typescript", "typescriptreact"],

"files.associations": {
"*.css": "tailwindcss",
"*.usj": "json",
".eslintignore": "ignore",
".prettierignore": "ignore",
".stylelintignore": "ignore"
Expand Down
Loading
Loading