diff --git a/eslint.config.mjs b/eslint.config.mjs index dd8ea00d..48df0808 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -7,6 +7,7 @@ import path from 'node:path'; import { fileURLToPath } from 'node:url'; import js from '@eslint/js'; import { FlatCompat } from '@eslint/eslintrc'; +import stylistic from '@stylistic/eslint-plugin'; const __filename = fileURLToPath(import.meta.url); const __dirname = path.dirname(__filename); @@ -28,6 +29,7 @@ security.configs.recommended, security, pluginCypress, '@typescript-eslint': typescriptEslint, + '@stylistic': stylistic }, languageOptions: { @@ -45,7 +47,12 @@ security.configs.recommended, }, rules: { - indent: ['error', 4], + '@stylistic/indent': ['error', 4], + '@stylistic/max-len': [2, { + code: 80, + tabWidth: 4, + ignoreUrls: true, + }], 'linebreak-style': ['error', 'unix'], 'no-unused-vars': ['error', { @@ -55,13 +62,6 @@ security.configs.recommended, quotes: ['error', 'single'], semi: ['error', 'always'], - - 'max-len': [2, { - code: 80, - tabWidth: 4, - ignoreUrls: true, - }], - 'space-before-function-paren': ['error', 'never'], 'space-in-parens': ['error', 'never'], 'no-trailing-spaces': ['error'], diff --git a/package-lock.json b/package-lock.json index 4d678850..a41e9c3b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -33,6 +33,7 @@ "@babel/preset-env": "^7.22.10", "@babel/preset-react": "^7.18.6", "@babel/preset-typescript": "^7.21.5", + "@stylistic/eslint-plugin": "^5.3.1", "@testing-library/jest-dom": "^6.1.0", "@testing-library/react": "^16.0.0", "@types/jest": "^29.5.1", @@ -3663,6 +3664,63 @@ "@sinonjs/commons": "^3.0.0" } }, + "node_modules/@stylistic/eslint-plugin": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/@stylistic/eslint-plugin/-/eslint-plugin-5.3.1.tgz", + "integrity": "sha512-Ykums1VYonM0TgkD0VteVq9mrlO2FhF48MDJnPyv3MktIB2ydtuhlO0AfWm7xnW1kyf5bjOqA6xc7JjviuVTxg==", + "dev": true, + "dependencies": { + "@eslint-community/eslint-utils": "^4.7.0", + "@typescript-eslint/types": "^8.41.0", + "eslint-visitor-keys": "^4.2.1", + "espree": "^10.4.0", + "estraverse": "^5.3.0", + "picomatch": "^4.0.3" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "peerDependencies": { + "eslint": ">=9.0.0" + } + }, + "node_modules/@stylistic/eslint-plugin/node_modules/@typescript-eslint/types": { + "version": "8.43.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.43.0.tgz", + "integrity": "sha512-vQ2FZaxJpydjSZJKiSW/LJsabFFvV7KgLC5DiLhkBcykhQj8iK9BOaDmQt74nnKdLvceM5xmhaTF+pLekrxEkw==", + "dev": true, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@stylistic/eslint-plugin/node_modules/eslint-visitor-keys": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.1.tgz", + "integrity": "sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==", + "dev": true, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@stylistic/eslint-plugin/node_modules/picomatch": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz", + "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, "node_modules/@swc/helpers": { "version": "0.5.15", "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.15.tgz", diff --git a/package.json b/package.json index 01add0ad..31a2e20c 100644 --- a/package.json +++ b/package.json @@ -47,6 +47,7 @@ "@babel/preset-env": "^7.22.10", "@babel/preset-react": "^7.18.6", "@babel/preset-typescript": "^7.21.5", + "@stylistic/eslint-plugin": "^5.3.1", "@testing-library/jest-dom": "^6.1.0", "@testing-library/react": "^16.0.0", "@types/jest": "^29.5.1", diff --git a/src/about.tsx b/src/about.tsx index cf21123f..06107077 100644 --- a/src/about.tsx +++ b/src/about.tsx @@ -1,3 +1,4 @@ + import React from 'react'; export const About: React.FC = () => { @@ -7,28 +8,30 @@ export const About: React.FC = () => {
- Using Spotify data, this project redevelops a series of - interactive simulations to support inquiry-based - learning of basic statistical concepts in Frontiers - of Science seminar sessions. + Using Spotify data, this project redevelops a series of + interactive simulations to support inquiry-based + learning of basic statistical concepts in Frontiers + of Science seminar sessions.
Statify source code is available on - Github under the GNU GPLv3 license. + Github under the GNU GPLv3 license.
- If you’re interested in implementing this tool in your - teaching practice, to learn more about Statify, or to - send feedback on this application, please reach out to - the CTL project team. Email us at + If you’re interested in implementing this tool in your + teaching practice, to learn more about Statify, or to + send feedback on this application, please reach out to + the CTL project team. Email us at - ctl-statify@columbia.edu. + ctl-statify@columbia.edu.
Must have at least 1 screenshot - before the assignment can be - created. + before the assignment can be + created.
}