-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fbw: feat(athr/fadec): improved reverse thrust limit based on TOGA li…
…mit (#8565)
- Loading branch information
1 parent
2c7fb19
commit 882f174
Showing
26 changed files
with
370 additions
and
98 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
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,83 @@ | ||
// Copyright (c) 2021-2023 FlyByWire Simulations | ||
// | ||
// SPDX-License-Identifier: GPL-3.0 | ||
|
||
'use strict'; | ||
|
||
module.exports = { | ||
env: { browser: true }, | ||
root: true, | ||
extends: [ | ||
'eslint:recommended', | ||
'plugin:prettier/recommended', | ||
// 'plugin:@typescript-eslint/recommended', -- Disabled as it is complex to fix, needs to be done bit by bit | ||
'plugin:@typescript-eslint/eslint-recommended', | ||
// 'plugin:react-hooks/recommended', -- Disabled as it is complex to fix, needs to be done bit by bit, and we are moving away from react | ||
// 'plugin:react/recommended', -- Disabled as it is complex to fix, needs to be done bit by bit, and we are moving away from react | ||
], | ||
plugins: ['@typescript-eslint', 'prettier', 'react-hooks', 'react', 'tailwindcss'], | ||
parser: '@typescript-eslint/parser', | ||
parserOptions: { | ||
ecmaVersion: 2021, | ||
sourceType: 'script', | ||
requireConfigFile: false, | ||
}, | ||
overrides: [ | ||
{ | ||
files: [ | ||
'.eslintrc.js', | ||
'scripts/**/*.js', | ||
'**/mach.config.js', | ||
'**/rollup.config.js', | ||
'**/tailwind.config.js', | ||
'**/jest.config.js', | ||
], | ||
env: { | ||
node: true, | ||
}, | ||
rules: { | ||
'@typescript-eslint/no-var-requires': 'off', | ||
}, | ||
}, | ||
{ | ||
files: ['fbw-common/src/jest/**/*.js'], | ||
env: { | ||
node: true, | ||
}, | ||
plugins: ['jest'], | ||
extends: ['plugin:jest/recommended'], | ||
}, | ||
], | ||
settings: { | ||
tailwindcss: { groupByResponsive: true }, | ||
react: { version: 'detect' }, | ||
}, | ||
ignorePatterns: ['fbw-common/src/typings/*', 'fbw-a380x/*', 'fbw-ingamepanels-checklist-fix/*'], | ||
rules: { | ||
'prettier/prettier': ['error', {}, { usePrettierrc: true }], | ||
|
||
'no-unused-vars': 'off', | ||
'@typescript-eslint/no-unused-vars': [ | ||
'error', | ||
{ | ||
varsIgnorePattern: 'FSComponent|_.*', | ||
argsIgnorePattern: '_.*', | ||
}, | ||
], | ||
|
||
'tailwindcss/classnames-order': 'error', | ||
'tailwindcss/enforces-negative-arbitrary-values': 'error', | ||
'tailwindcss/enforces-shorthand': 'error', | ||
'tailwindcss/migration-from-tailwind-2': 'error', | ||
'tailwindcss/no-contradicting-classname': 'error', | ||
}, | ||
globals: { | ||
Simplane: 'readonly', | ||
SimVar: 'readonly', | ||
Utils: 'readonly', | ||
JSX: 'readonly', | ||
Coherent: 'readonly', | ||
ViewListener: 'readonly', | ||
RegisterViewListener: 'readonly', | ||
}, | ||
}; |
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,6 @@ | ||
{ | ||
"singleQuote": true, | ||
"printWidth": 120, | ||
"parser": "typescript", | ||
"endOfLine": "auto" | ||
} |
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,61 @@ | ||
// Copyright (c) 2021-2023 FlyByWire Simulations | ||
// | ||
// SPDX-License-Identifier: GPL-3.0 | ||
|
||
module.exports = { | ||
root: true, | ||
env: { | ||
browser: true, | ||
es2021: true, | ||
}, | ||
// DO NOT CHANGE THIS FILE (unless you are an admin) (if admin, make sure you change the same file in the latest asobo branch as well) | ||
rules: { | ||
"indent": [ | ||
"error", | ||
4, | ||
{ SwitchCase: 1 }, | ||
], | ||
"linebreak-style": "off", | ||
// No quotes option is really fully consistent, so probably best to jsut not enforce either type | ||
"quotes": "off", | ||
"semi": ["error", "always"], | ||
"curly": ["error", "all"], | ||
"brace-style": ["error", "1tbs"], | ||
"space-before-blocks": "error", | ||
"space-before-function-paren": [ | ||
"error", | ||
{ | ||
anonymous: "always", | ||
named: "never", | ||
asyncArrow: "always", | ||
}, | ||
], | ||
"space-in-parens": "error", | ||
"space-infix-ops": "error", | ||
"space-unary-ops": "error", | ||
"keyword-spacing": "error", | ||
"no-irregular-whitespace": "error", | ||
"no-trailing-spaces": "error", | ||
"semi-spacing": "error", | ||
"no-mixed-spaces-and-tabs": "error", | ||
"no-multi-spaces": "error", | ||
// There are too many vars that cant be autofixed | ||
"no-var": "off", | ||
"prefer-const": [ | ||
"error", | ||
{ destructuring: "all" }, | ||
], | ||
// The vanilla code already has over 100 console.logs, but maybe we can enable this in master and delete them there | ||
"no-console": "off", | ||
"no-debugger": "error", | ||
"eol-last": ["error", "always"], | ||
"no-multiple-empty-lines": [ | ||
"error", | ||
{ | ||
max: 1, | ||
maxBOF: 0, | ||
maxEOF: 0, | ||
}, | ||
], | ||
}, | ||
}; |
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
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,61 @@ | ||
// Copyright (c) 2021-2023 FlyByWire Simulations | ||
// | ||
// SPDX-License-Identifier: GPL-3.0 | ||
|
||
module.exports = { | ||
root: true, | ||
env: { | ||
browser: true, | ||
es2021: true, | ||
}, | ||
// DO NOT CHANGE THIS FILE (unless you are an admin) (if admin, make sure you change the same file in the latest asobo branch as well) | ||
rules: { | ||
"indent": [ | ||
"error", | ||
4, | ||
{ SwitchCase: 1 }, | ||
], | ||
"linebreak-style": "off", | ||
// No quotes option is really fully consistent, so probably best to jsut not enforce either type | ||
"quotes": "off", | ||
"semi": ["error", "always"], | ||
"curly": ["error", "all"], | ||
"brace-style": ["error", "1tbs"], | ||
"space-before-blocks": "error", | ||
"space-before-function-paren": [ | ||
"error", | ||
{ | ||
anonymous: "always", | ||
named: "never", | ||
asyncArrow: "always", | ||
}, | ||
], | ||
"space-in-parens": "error", | ||
"space-infix-ops": "error", | ||
"space-unary-ops": "error", | ||
"keyword-spacing": "error", | ||
"no-irregular-whitespace": "error", | ||
"no-trailing-spaces": "error", | ||
"semi-spacing": "error", | ||
"no-mixed-spaces-and-tabs": "error", | ||
"no-multi-spaces": "error", | ||
// There are too many vars that cant be autofixed | ||
"no-var": "off", | ||
"prefer-const": [ | ||
"error", | ||
{ destructuring: "all" }, | ||
], | ||
// The vanilla code already has over 100 console.logs, but maybe we can enable this in master and delete them there | ||
"no-console": "off", | ||
"no-debugger": "error", | ||
"eol-last": ["error", "always"], | ||
"no-multiple-empty-lines": [ | ||
"error", | ||
{ | ||
max: 1, | ||
maxBOF: 0, | ||
maxEOF: 0, | ||
}, | ||
], | ||
}, | ||
}; |
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
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
Oops, something went wrong.