Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(packages): introduce eslint-config-bananass #6

Draft
wants to merge 27 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
b676fdc
chore: delete `.gitkeep` and create `package.json`
lumirlumir Dec 1, 2024
a28ba00
chore: update `package-lock.json`
lumirlumir Dec 1, 2024
8d65563
wip: create `eslint-possible-problems.js`
lumirlumir Dec 1, 2024
a9df4b4
wip: create `src/rules/index.js`
lumirlumir Dec 1, 2024
96a877d
wip: create `src/index.js`
lumirlumir Dec 1, 2024
c1c3474
wip: create `templates/jsdoc.md`
lumirlumir Dec 2, 2024
8f3d2a7
Merge branch 'main' into feat-eslint-config-bananass
lumirlumir Dec 2, 2024
2304653
wip: create `eslint-layout-formatting.js`
lumirlumir Dec 2, 2024
6f49dcd
wip
lumirlumir Dec 2, 2024
5b63cb5
Merge branch 'main' into feat-eslint-config-bananass
lumirlumir Dec 4, 2024
01e4900
wip
lumirlumir Dec 7, 2024
cfb02b0
wip
lumirlumir Dec 7, 2024
638140f
wip
lumirlumir Dec 7, 2024
76eddad
wip: update `package.json`
lumirlumir Dec 7, 2024
12a5b5b
wip: update `jsdoc.md`
lumirlumir Dec 7, 2024
96a53b5
wip: update `index.js`
lumirlumir Dec 7, 2024
e0eb42e
Merge branch 'main' into feat-eslint-config-bananass
lumirlumir Dec 7, 2024
c232b11
wip
lumirlumir Dec 7, 2024
cc36e27
Merge branch 'feat-eslint-config-bananass' of https://github.com/lumi…
lumirlumir Dec 7, 2024
ffcf980
wip: update `eslint-suggestions.js`
lumirlumir Dec 7, 2024
bd688d7
Merge branch 'main' into feat-eslint-config-bananass
lumirlumir Dec 23, 2024
4ee9c46
chore: update ESLint config package and dependencies
lumirlumir Dec 24, 2024
d164908
refactor: rename eslint config package and update paths
lumirlumir Dec 24, 2024
4923144
wip: update `package.json`
lumirlumir Dec 24, 2024
911ca91
docs: update code block syntax from `javascript` to `js`
lumirlumir Dec 24, 2024
b80a9f9
refactor: update JSDoc comments to use `@fileoverview` and add `expor…
lumirlumir Dec 24, 2024
81662df
wip: update airbnb-base link comments
lumirlumir Dec 24, 2024
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
19 changes: 19 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Empty file.
41 changes: 41 additions & 0 deletions packages/eslint-config-bananass/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"name": "eslint-config-bananass",
"version": "0.0.0",
"description": "ESLint Config for Bananass Framework.🍌",
"exports": "./src/index.js",
"files": [
"src",
"LICENSE.md",
"README.md"
],
"keywords": [
"bananass",
"baekjoon",
"framework",
"javascript",
"eslint",
"eslintconfig",
"eslint-config",
"config",
"flat",
"flat-config"
],
"author": "루밀LuMir <[email protected]> (https://github.com/lumirlumir)",
"license": "MIT",
"homepage": "https://github.com/lumirlumir/npm-bananass",
"repository": {
"type": "github",
"url": "git+https://github.com/lumirlumir/npm-bananass.git",
"directory": "packages/eslint-config-bananass"
},
"bugs": {
"url": "https://github.com/lumirlumir/npm-bananass/issues"
},
"engines": {
"node": ">=20.18.0"
},
"scripts": {
"test": "node --test"
},
"peerDependencies": {}
}
14 changes: 14 additions & 0 deletions packages/eslint-config-bananass/src/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
const eslintLayoutFormatting = require('./rules/eslint-layout-formatting');
const eslintPossibleProblems = require('./rules/eslint-possible-problems');
const eslintSuggestions = require('./rules/eslint-suggestions');

module.exports = [
{
// languageOptions: {},
rules: {
...eslintLayoutFormatting,
...eslintPossibleProblems,
...eslintSuggestions,
},
},
];
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/**
* @fileoverview This file follows:
*
* - The order of the rules listed in the 'Layout & Formatting' section on eslint.org.
* - See, {@link https://eslint.org/docs/latest/rules#layout--formatting}.
*
* - The best practices outlined in `[email protected]`.
* - See, {@link https://github.com/airbnb/javascript/tree/eslint-config-airbnb-v19.0.4/packages/eslint-config-airbnb-base/rules}.
*/

// --------------------------------------------------------------------------------
// Exports
// --------------------------------------------------------------------------------

module.exports = {
/**
* Require or disallow Unicode byte order mark (BOM).
*
* @link eslint: {@link https://eslint.org/docs/latest/rules/unicode-bom}
* @link airbnb-base: {@link https://github.com/airbnb/javascript/blob/eslint-config-airbnb-v19.0.4/packages/eslint-config-airbnb-base/rules/style.js#L521}
*/
'unicode-bom': ['error', 'never'],
};
Loading
Loading